aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/memory.c
diff options
context:
space:
mode:
authorKairui Song <kasong@tencent.com>2025-03-14 00:59:35 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-03-16 22:06:44 -0700
commitb487a2da3575b6cdfb6d6559311830c8fea70bb9 (patch)
treee71154bd192ab92dcdf8c2b06abf6af2b9f0fa1c /mm/memory.c
parentmm, swap: remove swap slot cache (diff)
downloadwireguard-linux-b487a2da3575b6cdfb6d6559311830c8fea70bb9.tar.xz
wireguard-linux-b487a2da3575b6cdfb6d6559311830c8fea70bb9.zip
mm, swap: simplify folio swap allocation
With slot cache gone, clean up the allocation helpers even more. folio_alloc_swap will be the only entry for allocation and adding the folio to swap cache (except suspend), making it opposite of folio_free_swap. Link: https://lkml.kernel.org/r/20250313165935.63303-8-ryncsn@gmail.com Signed-off-by: Kairui Song <kasong@tencent.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Baoquan He <bhe@redhat.com> Cc: Barry Song <v-songbaohua@oppo.com> Cc: Chris Li <chrisl@kernel.org> Cc: "Huang, Ying" <ying.huang@linux.alibaba.com> Cc: Hugh Dickins <hughd@google.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Kalesh Singh <kaleshsingh@google.com> Cc: Matthew Wilcow (Oracle) <willy@infradead.org> Cc: Nhat Pham <nphamcs@gmail.com> Cc: Yosry Ahmed <yosryahmed@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions