]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ksm: convert cmp_and_merge_page() to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 2 Oct 2024 15:25:28 +0000 (16:25 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:28:55 +0000 (21:28 -0700)
commit44ab1b78f5386a715f0ed6fcf0faccafd01d7863
tree7712383bbcdddb3e5355b81b85b02f87ee752581
parent661fef0c100b0dcc3e20e3e1621ed6300c43f5ec
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.

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>
mm/ksm.c