mm/ksm: use folio in stable_node_dup
authorAlex Shi (tencent) <alexs@kernel.org>
Thu, 11 Apr 2024 06:17:06 +0000 (14:17 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:33 +0000 (17:53 -0700)
commit6f528de2986e179bf4a100dcc8db2a6703aa7885
treef76a92c4ecd32c259b054032be20f7cc1740bcdb
parent9d5cc14093594f0a5f8318cc70208bbbe71f5fce
mm/ksm: use folio in stable_node_dup

Use ksm_get_folio() and save 2 compound_head calls.

Link: https://lkml.kernel.org/r/20240411061713.1847574-6-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>
mm/ksm.c