linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm, swap: fix swap_count comment about nonexistent SWAP_HAS_CONT
@ 2018-06-12 17:59 Daniel Jordan
  0 siblings, 0 replies; only message in thread
From: Daniel Jordan @ 2018-06-12 17:59 UTC (permalink / raw)
  To: akpm; +Cc: ying.huang, hughd, linux-mm, linux-kernel, daniel.m.jordan

570a335b8e22 ("swap_info: swap count continuations") introduces
COUNT_CONTINUED but refers to it incorrectly as SWAP_HAS_CONT in a
comment in swap_count.  Fix it.

Fixes: 570a335b8e22 ("swap_info: swap count continuations")
Signed-off-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Hugh Dickins <hughd@google.com>
---
 mm/swapfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/swapfile.c b/mm/swapfile.c
index 744d66666f82..808349ee6f6f 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -101,7 +101,7 @@ atomic_t nr_rotate_swap = ATOMIC_INIT(0);
 
 static inline unsigned char swap_count(unsigned char ent)
 {
-	return ent & ~SWAP_HAS_CACHE;	/* may include SWAP_HAS_CONT flag */
+	return ent & ~SWAP_HAS_CACHE;	/* may include COUNT_CONTINUED flag */
 }
 
 /* returns 1 if swap entry is freed */
-- 
2.17.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-06-12 18:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-12 17:59 [PATCH] mm, swap: fix swap_count comment about nonexistent SWAP_HAS_CONT Daniel Jordan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox