+5
−10
Loading
mainline inclusion from mainline-v6.12-rc1 commit d2539ed7ee3b042e4503c304603d0eaa50c9c476 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IAOMRL Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d2539ed7ee3b042e4503c304603d0eaa50c9c476 -------------------------------- Extend a usage parameter so that cluster_swap_free_nr() can be reused by both swapcache_clear() and swap_free(). __swap_entry_free() is quite similar but more tricky as it requires the return value of __swap_entry_free_locked() which cluster_swap_free_nr() doesn't support. Link: https://lkml.kernel.org/r/20240724020056.65838-1-21cnbao@gmail.com Signed-off-by:Barry Song <v-songbaohua@oppo.com> Reviewed-by:
Ryan Roberts <ryan.roberts@arm.com> Acked-by:
Chris Li <chrisl@kernel.org> Cc: "Huang, Ying" <ying.huang@intel.com> Cc: Kairui Song <kasong@tencent.com> Cc: David Hildenbrand <david@redhat.com> Cc: Chuanhua Han <hanchuanhua@oppo.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Wang Lian <dev01404@linx-info.com> ---