summaryrefslogtreecommitdiff
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-05-19 14:08:52 -0700
committerakpm <akpm@linux-foundation.org>2022-05-19 14:08:52 -0700
commit3c3115ad6baddbf526521231ea43d9fff34dfa11 (patch)
treeda73c4ceba69b3c382f557ed774e5c8b89dbb960 /mm/swapfile.c
parenta930c210c42dec32b031ad7645bd6904701b5297 (diff)
downloadlinux-riscv-3c3115ad6baddbf526521231ea43d9fff34dfa11.tar.gz
linux-riscv-3c3115ad6baddbf526521231ea43d9fff34dfa11.tar.bz2
linux-riscv-3c3115ad6baddbf526521231ea43d9fff34dfa11.zip
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 <linmiaohe@huawei.com> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Alistair Popple <apopple@nvidia.com> Cc: David Howells <dhowells@redhat.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Naoya Horiguchi <naoya.horiguchi@nec.com> Cc: NeilBrown <neilb@suse.de> Cc: Peter Xu <peterx@redhat.com> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Oscar Salvador <osalvador@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/swapfile.c')
-rw-r--r--mm/swapfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 331aa0cc5b9e..0535afc897ab 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)