]> Gentwo Git Trees - 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>
Sun, 23 Feb 2025 06:25:15 +0000 (22:25 -0800)
commit135995f90a2ad5b50df5fe4d76293223f6b94811
tree2ff94ec6f328fc493e4a0c07d0cb9c63f9001af4
parent850532aaa4f40717c5745e0ed28342ec503425cc
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