diff options
author | Barry Song <v-songbaohua@oppo.com> | 2024-07-24 04:00:56 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-09-02 05:25:46 +0200 |
commit | d2539ed7ee3b042e4503c304603d0eaa50c9c476 (patch) | |
tree | def8311d35be72a7ae7ad8bf98fa085b34db51b9 /mm/huge_memory.c | |
parent | mm: kmem: remove mem_cgroup_from_obj() (diff) | |
download | linux-d2539ed7ee3b042e4503c304603d0eaa50c9c476.tar.xz linux-d2539ed7ee3b042e4503c304603d0eaa50c9c476.zip |
mm: extend 'usage' parameter so that cluster_swap_free_nr() can be reused
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>
Diffstat (limited to 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions