From: Miaohe Lin Date: Thu, 19 May 2022 21:08:52 +0000 (-0700) Subject: mm/swap: clean up the comment of find_next_to_unuse X-Git-Tag: v6.6.17~7438^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c3115ad6baddbf526521231ea43d9fff34dfa11;p=platform%2Fkernel%2Flinux-rpi.git mm/swap: clean up the comment of find_next_to_unuse Since commit 10a9c496789f ("mm: simplify try_to_unuse"), frontswap parameter is removed. Update the corresponding comment. Link: https://lkml.kernel.org/r/20220509131416.17553-14-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Reviewed-by: David Hildenbrand Cc: Alistair Popple Cc: David Howells Cc: Matthew Wilcox Cc: Naoya Horiguchi Cc: NeilBrown Cc: Peter Xu Cc: Suren Baghdasaryan Cc: Vlastimil Babka Cc: Oscar Salvador Signed-off-by: Andrew Morton --- diff --git a/mm/swapfile.c b/mm/swapfile.c index 331aa0c..0535afc 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -1990,9 +1990,9 @@ static int unuse_mm(struct mm_struct *mm, unsigned int type) } /* - * Scan swap_map (or frontswap_map if frontswap parameter is true) - * from current position to next entry still in use. Return 0 - * if there are no inuse entries after prev till end of the map. + * Scan swap_map from current position to next entry still in use. + * Return 0 if there are no inuse entries after prev till end of + * the map. */ static unsigned int find_next_to_unuse(struct swap_info_struct *si, unsigned int prev)