From: Daniel Jordan Date: Thu, 14 Jun 2018 22:26:21 +0000 (-0700) Subject: mm/swapfile.c: fix swap_count comment about nonexistent SWAP_HAS_CONT X-Git-Tag: v4.19~775^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=955c97f0859abef698e77f5697f5c4008303abb9;p=platform%2Fkernel%2Flinux-rpi3.git mm/swapfile.c: fix swap_count comment about nonexistent SWAP_HAS_CONT Commit 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. Link: http://lkml.kernel.org/r/20180612175919.30413-1-daniel.m.jordan@oracle.com Fixes: 570a335b8e22 ("swap_info: swap count continuations") Signed-off-by: Daniel Jordan Reviewed-by: Andrew Morton Cc: "Huang, Ying" Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/swapfile.c b/mm/swapfile.c index 925cf79..2cc2972 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -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 */