diff options
author | 2024-10-02 16:25:28 +0100 | |
---|---|---|
committer | 2024-11-06 20:11:08 -0800 | |
commit | 98c3ca0015b8a5af7f98109261bd9a471097135b (patch) | |
tree | d7b6d7b4da7785205766b495e5f1c7a9cbbaacf3 /mm/vmscan.c | |
parent | ksm: use a folio in try_to_merge_one_page() (diff) | |
download | wireguard-linux-98c3ca0015b8a5af7f98109261bd9a471097135b.tar.xz wireguard-linux-98c3ca0015b8a5af7f98109261bd9a471097135b.zip |
ksm: convert cmp_and_merge_page() to use a folio
By making try_to_merge_two_pages() and stable_tree_search() return a
folio, we can replace kpage with kfolio. This replaces 7 calls to
compound_head() with one.
[cuigaosheng1@huawei.com: add IS_ERR_OR_NULL check for stable_tree_search()]
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Link: https://lkml.kernel.org/r/20241002152533.1350629-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Alex Shi <alexs@kernel.org>
Cc: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions