]> www.infradead.org Git - users/dwmw2/linux.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>
Mon, 17 Mar 2025 05:06:07 +0000 (22:06 -0700)
commit1d212293ffd145eebd795d5969a81a3b59f71bcb
tree41a808dd2c817800758275f29093f581bb6286bf
parent4ccd4154fafff5516103051bc9162c33d832b880
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