mm/ksm: use folio in remove_rmap_item_from_tree
authorAlex Shi (tencent) <alexs@kernel.org>
Thu, 11 Apr 2024 06:17:03 +0000 (14:17 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:32 +0000 (17:53 -0700)
commitf39b6e2dc18efcc7f8d55cdf62c8c6cad47d1f06
treec9158277cafdb994b473cbddde83ecd23e091c8d
parentb91f94729d050eec86ae7ef084aa3805146c0a67
mm/ksm: use folio in remove_rmap_item_from_tree

To save 2 compound_head calls.

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