]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm/ksm: page_remove_rmap() -> folio_remove_rmap_pte()
authorDavid Hildenbrand <david@redhat.com>
Wed, 20 Dec 2023 22:44:51 +0000 (23:44 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 Dec 2023 19:58:53 +0000 (11:58 -0800)
Let's convert replace_page().

Link: https://lkml.kernel.org/r/20231220224504.646757-28-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Yin Fengwei <fengwei.yin@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/ksm.c

index 146aa75fa6ff767907dd33e848896d115fe485c5..716e2f87dd79538b72393879a54c1526fbb265ad 100644 (file)
--- 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);