diff options
| author | Barry Song <v-songbaohua@oppo.com> | 2024-07-24 14:00:56 +1200 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2024-09-01 20:25:46 -0700 |
| commit | d2539ed7ee3b042e4503c304603d0eaa50c9c476 (patch) | |
| tree | def8311d35be72a7ae7ad8bf98fa085b34db51b9 /include/linux/rtc | |
| parent | 4fd568faf6e7e21f206cd66dd4fca9a72e7d922c (diff) | |
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 'include/linux/rtc')
0 files changed, 0 insertions, 0 deletions
