mm/ksm: use ksm_get_folio in scan_get_next_rmap_item
authorAlex Shi (tencent) <alexs@kernel.org>
Thu, 11 Apr 2024 06:17:07 +0000 (14:17 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:33 +0000 (17:53 -0700)
commit72556a4c06646b7e314ee0920796699c9d4a8b47
treefdb90e72bd44982834846aa2cf20390db7d5e12e
parent6f528de2986e179bf4a100dcc8db2a6703aa7885
mm/ksm: use ksm_get_folio in scan_get_next_rmap_item

Save a compound_head call.

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