diff options
author | David Hildenbrand <david@redhat.com> | 2023-12-20 23:44:51 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-29 20:58:53 +0100 |
commit | 18e8612e56244c6db3254d435a22344856a9c55b (patch) | |
tree | 76ab358b8b3698cde987fcdb05a71db72aa57646 /mm/ksm.c | |
parent | mm/khugepaged: page_remove_rmap() -> folio_remove_rmap_pte() (diff) | |
download | linux-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |