Skip to content

Commit

Permalink
mm/swapfile.c: fix swap_count comment about nonexistent SWAP_HAS_CONT
Browse files Browse the repository at this point in the history
Commit 570a335 ("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.

Link: http://lkml.kernel.org/r/[email protected]
Fixes: 570a335 ("swap_info: swap count continuations")
Signed-off-by: Daniel Jordan <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: "Huang, Ying" <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
danieljordan10 authored and torvalds committed Jun 14, 2018
1 parent df2a419 commit 955c97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/swapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 955c97f

Please sign in to comment.