diff options
author | 2024-04-11 14:17:05 +0800 | |
---|---|---|
committer | 2024-05-05 17:53:33 -0700 | |
commit | 9d5cc14093594f0a5f8318cc70208bbbe71f5fce (patch) | |
tree | f379bfdf52078d0584e18f1a0585942c260975d3 /mm/memory.c | |
parent | mm/ksm: add folio_set_stable_node (diff) | |
download | wireguard-linux-9d5cc14093594f0a5f8318cc70208bbbe71f5fce.tar.xz wireguard-linux-9d5cc14093594f0a5f8318cc70208bbbe71f5fce.zip |
mm/ksm: use folio in remove_stable_node
Pages in stable tree are all single normal page, so uses ksm_get_folio()
and folio_set_stable_node(), also saves 3 calls to compound_head().
Link: https://lkml.kernel.org/r/20240411061713.1847574-5-alexs@kernel.org
Signed-off-by: Alex Shi (tencent) <alexs@kernel.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Izik Eidus <izik.eidus@ravellosystems.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions