From: David Hildenbrand Date: Wed, 20 Dec 2023 22:44:51 +0000 (+0100) Subject: mm/ksm: page_remove_rmap() -> folio_remove_rmap_pte() X-Git-Tag: v6.8-rc1~180^2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18e8612e56244c6db3254d435a22344856a9c55b;p=thirdparty%2Flinux.git mm/ksm: page_remove_rmap() -> folio_remove_rmap_pte() Let's convert replace_page(). Link: https://lkml.kernel.org/r/20231220224504.646757-28-david@redhat.com Signed-off-by: David Hildenbrand Cc: Hugh Dickins Cc: Matthew Wilcox (Oracle) Cc: Muchun Song Cc: Muchun Song Cc: Peter Xu Cc: Ryan Roberts Cc: Yin Fengwei Signed-off-by: Andrew Morton --- diff --git a/mm/ksm.c b/mm/ksm.c index 146aa75fa6ff7..716e2f87dd795 100644 --- a/mm/ksm.c +++ b/mm/ksm.c @@ -1449,7 +1449,7 @@ static int replace_page(struct vm_area_struct *vma, struct page *page, set_pte_at_notify(mm, addr, ptep, newpte); folio = page_folio(page); - page_remove_rmap(page, vma, false); + folio_remove_rmap_pte(folio, page, vma); if (!folio_mapped(folio)) folio_free_swap(folio); folio_put(folio);