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>
This commit is contained in:
parent
35668a4321
commit
18e8612e56
1 changed files with 1 additions and 1 deletions
2
mm/ksm.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue