summaryrefslogtreecommitdiffstats
path: root/mm/ksm.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2023-12-20 23:44:51 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-12-29 20:58:53 +0100
commit18e8612e56244c6db3254d435a22344856a9c55b (patch)
tree76ab358b8b3698cde987fcdb05a71db72aa57646 /mm/ksm.c
parentmm/khugepaged: page_remove_rmap() -> folio_remove_rmap_pte() (diff)
downloadlinux-18e8612e56244c6db3254d435a22344856a9c55b.tar.xz
linux-18e8612e56244c6db3254d435a22344856a9c55b.zip
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 <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>
Diffstat (limited to 'mm/ksm.c')
-rw-r--r--mm/ksm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/ksm.c b/mm/ksm.c
index 146aa75fa6ff..716e2f87dd79 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);