]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksm: use a folio inside cmp_and_merge_page()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 16 Sep 2025 18:11:59 +0000 (19:11 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 23 Sep 2025 21:14:16 +0000 (14:14 -0700)
commit1b00ab48892fe6115618e2c81f9c1891ad0c0a5a
treeaaa655a777f75f17fcc3e46ea29e694efdb34fae
parent19c5fb83f2a4dde7b53b3aeb1fa87bfa3559286b
ksm: use a folio inside cmp_and_merge_page()

This removes the last call to page_stable_node(), so delete the wrapper.
It also removes a call to trylock_page() and saves a call to
compound_head(), as well as removing a reference to folio->page.

Link: https://lkml.kernel.org/r/20250916181219.2400258-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Longlong Xia <xialonglong@kylinos.cn>
Cc: xu xin <xu.xin16@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/ksm.c