]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/swapfile.c: open code cluster_alloc_swap()
authorBaoquan He <bhe@redhat.com>
Wed, 5 Feb 2025 09:27:21 +0000 (17:27 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:49:42 +0000 (21:49 -0800)
commitb00dbd62beef974fd93ebc426d5962b006882ac9
treedf02bba0927d606f0d191d7b93f9dbc0f9b143b5
parentf83bd24e3d22838de63e856f4e52234a1ed518d4
mm/swapfile.c: open code cluster_alloc_swap()

It's only called in scan_swap_map_slots().

And also remove the stale code comment in scan_swap_map_slots() because
it's not fit for the current cluster allocation mechanism.

Link: https://lkml.kernel.org/r/20250205092721.9395-13-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Cc: Chris Li <chrisl@kernel.org>
Cc: Kairui Song <ryncsn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c