Commit 955c97f0 authored by Daniel Jordan's avatar Daniel Jordan Committed by Linus Torvalds
Browse files

mm/swapfile.c: fix swap_count comment about nonexistent SWAP_HAS_CONT

Commit 570a335b ("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: 570a335b

 ("swap_info: swap count continuations")
Signed-off-by: default avatarDaniel Jordan <>
Reviewed-by: default avatarAndrew Morton <>
Cc: "Huang, Ying" <>
Cc: Hugh Dickins <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent df2a4196
......@@ -100,7 +100,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 */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment