diff options
author | 2024-07-24 14:00:56 +1200 | |
---|---|---|
committer | 2024-09-01 20:25:46 -0700 | |
commit | d2539ed7ee3b042e4503c304603d0eaa50c9c476 (patch) | |
tree | def8311d35be72a7ae7ad8bf98fa085b34db51b9 /mm/mprotect.c | |
parent | mm: kmem: remove mem_cgroup_from_obj() (diff) | |
download | wireguard-linux-d2539ed7ee3b042e4503c304603d0eaa50c9c476.tar.xz wireguard-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/mprotect.c')
0 files changed, 0 insertions, 0 deletions