]> Git Repo - linux.git/commit - mm/ksm.c
mm/ksm: use folio in remove_stable_node
authorAlex Shi (tencent) <[email protected]>
Thu, 11 Apr 2024 06:17:05 +0000 (14:17 +0800)
committerAndrew Morton <[email protected]>
Mon, 6 May 2024 00:53:33 +0000 (17:53 -0700)
commit9d5cc14093594f0a5f8318cc70208bbbe71f5fce
treef379bfdf52078d0584e18f1a0585942c260975d3
parentb8b0ff244ddca0d475c91c9accf144e25311a951
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/[email protected]
Signed-off-by: Alex Shi (tencent) <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Izik Eidus <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Chris Wright <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
mm/ksm.c
This page took 0.051726 seconds and 4 git commands to generate.