summaryrefslogtreecommitdiffstats
path: root/kernel/events
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-12-11 16:22:09 +0000
committerAndrew Morton <akpm@linux-foundation.org>2023-12-29 11:58:25 -0800
commit2853b66b601a265306be709b4d86aaff7d92a0fc (patch)
treec4770c02bd93b5cb86c7a7451a8b3e1f5a2eb7d5 /kernel/events
parentf00f48436c789af659047d3c5d6f6d17e640634e (diff)
downloadlinux-stable-2853b66b601a265306be709b4d86aaff7d92a0fc.tar.gz
linux-stable-2853b66b601a265306be709b4d86aaff7d92a0fc.tar.bz2
linux-stable-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 'kernel/events')
-rw-r--r--kernel/events/uprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index 435aac1d8c27..8b115fc43f04 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -181,7 +181,7 @@ static int __replace_page(struct vm_area_struct *vma, unsigned long addr,
if (new_page) {
folio_get(new_folio);
- page_add_new_anon_rmap(new_page, vma, addr);
+ folio_add_new_anon_rmap(new_folio, vma, addr);
folio_add_lru_vma(new_folio, vma);
} else
/* no new page, just dec_mm_counter for old_page */