diff options
author | Daniel Jordan <daniel.m.jordan@oracle.com> | 2018-06-14 15:26:21 -0700 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2018-11-20 18:05:14 +0000 |
commit | 9b7a14031b86e563299032ccfc1ed3d2aec65e6b (patch) | |
tree | c7ee678ea38196e59399174b65b3ee9271b053b9 | |
parent | 33334548ea4e37c570ca85cdf4c9abb098084743 (diff) | |
download | linux-stable-9b7a14031b86e563299032ccfc1ed3d2aec65e6b.tar.gz linux-stable-9b7a14031b86e563299032ccfc1ed3d2aec65e6b.tar.bz2 linux-stable-9b7a14031b86e563299032ccfc1ed3d2aec65e6b.zip |
mm/swapfile.c: fix swap_count comment about nonexistent SWAP_HAS_CONT
commit 955c97f0859abef698e77f5697f5c4008303abb9 upstream.
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 <daniel.m.jordan@oracle.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | mm/swapfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index aef1f7e9143b..5ee24d70eeca 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -88,7 +88,7 @@ static atomic_t proc_poll_event = 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 */ |