mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
mm/swapfile: page_add_anon_rmap() -> folio_add_anon_rmap_pte()
Let's convert unuse_pte(). Link: https://lkml.kernel.org/r/20231220224504.646757-20-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
977295349e
commit
da7dc0afe2
@ -1806,7 +1806,7 @@ static int unuse_pte(struct vm_area_struct *vma, pmd_t *pmd,
|
|||||||
if (pte_swp_exclusive(old_pte))
|
if (pte_swp_exclusive(old_pte))
|
||||||
rmap_flags |= RMAP_EXCLUSIVE;
|
rmap_flags |= RMAP_EXCLUSIVE;
|
||||||
|
|
||||||
page_add_anon_rmap(page, vma, addr, rmap_flags);
|
folio_add_anon_rmap_pte(folio, page, vma, addr, rmap_flags);
|
||||||
} else { /* ksm created a completely new copy */
|
} else { /* ksm created a completely new copy */
|
||||||
folio_add_new_anon_rmap(folio, vma, addr);
|
folio_add_new_anon_rmap(folio, vma, addr);
|
||||||
folio_add_lru_vma(folio, vma);
|
folio_add_lru_vma(folio, vma);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user