diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-12-11 17:22:09 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-29 20:58:25 +0100 |
commit | 2853b66b601a265306be709b4d86aaff7d92a0fc (patch) | |
tree | c4770c02bd93b5cb86c7a7451a8b3e1f5a2eb7d5 /mm/memory.c | |
parent | mm: convert unuse_pte() to use a folio throughout (diff) | |
download | linux-2853b66b601a265306be709b4d86aaff7d92a0fc.tar.xz linux-2853b66b601a265306be709b4d86aaff7d92a0fc.zip |
mm: remove some calls to page_add_new_anon_rmap()
We already have the folio in these functions, we just need to use it.
folio_add_new_anon_rmap() didn't exist at the time they were converted to
folios.
Link: https://lkml.kernel.org/r/20231211162214.2146080-5-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 7649cb9eb7f5..5c023bef2adb 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4071,7 +4071,7 @@ vm_fault_t do_swap_page(struct vm_fault *vmf) /* ksm created a completely new copy */ if (unlikely(folio != swapcache && swapcache)) { - page_add_new_anon_rmap(page, vma, vmf->address); + folio_add_new_anon_rmap(folio, vma, vmf->address); folio_add_lru_vma(folio, vma); } else { page_add_anon_rmap(page, vma, vmf->address, rmap_flags); |