]> 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>
Fri, 28 Feb 2025 00:59:51 +0000 (16:59 -0800)
commit30a4ca21b2583f5c174e1f37c3f85574923ee93f
tree545d3d5523f4a822708bc0f40ea94cd221d901fe
parent20e3c63ad3232339ccd0f22d8b726d77a7668eeb
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