]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: swap: clean up initialization helper
authorKairui Song <kasong@tencent.com>
Wed, 31 Jul 2024 06:49:16 +0000 (23:49 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:52:46 +0000 (17:52 -0700)
commit0930de9a3fdd3259148b6cd2297f9c3b7f87f4e8
treea6df5635d12f3c6b7644c55bebb2bb804d2b1ff5
parentaded4352f6486aed79da33bdde289ddaec399652
mm: swap: clean up initialization helper

At this point, alloc_cluster is never called already, and
inc_cluster_info_page is called by initialization only, a lot of dead code
can be dropped.

Link: https://lkml.kernel.org/r/20240730-swap-allocator-v5-4-cb9c148b9297@kernel.org
Signed-off-by: Kairui Song <kasong@tencent.com>
Reported-by: Barry Song <21cnbao@gmail.com>
Cc: Chris Li <chrisl@kernel.org>
Cc: "Huang, Ying" <ying.huang@intel.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Kalesh Singh <kaleshsingh@google.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c