Skip to contentSkip to conversation

mm, swap: fix swap_count comment about nonexistent SWAP_HAS_CONT

PATCH New Daniel Jordan 1 participant 1 message Jun 12, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm, swap: fix swap_count comment about nonexistent SWAP_HAS_CONT

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")
Cc "Huang, Ying" <[email protected]>
Cc Hugh Dickins <[email protected]>
---
 mm/swapfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/swapfile.c +1 -1
index 744d66666f82..808349ee6f6f 100644
@@ -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 */
Signature · 1 line
2.17.0