]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm: pagewalk: don't check vma in walk_page_range_novma()
authorRolf Eike Beer <eb@emlix.com>
Mon, 22 Aug 2022 13:00:47 +0000 (15:00 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Aug 2022 05:03:25 +0000 (22:03 -0700)
Directly call walk_pgd_range() as that is everything that will actually
happen in __walk_page_range() besides checking if the vma is set.

Link: https://lkml.kernel.org/r/21585888.EfDdHjke4D@devpool047
Signed-off-by: Rolf Eike Beer <eb@emlix.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/pagewalk.c

index ed12a6c434a949d3c458ad022eac2fd9d36894d1..f4d760193c2580c7a93df222a28c445326ed6c9f 100644 (file)
@@ -517,7 +517,7 @@ int walk_page_range_novma(struct mm_struct *mm, unsigned long start,
 
        mmap_assert_locked(walk.mm);
 
-       return __walk_page_range(start, end, &walk);
+       return walk_pgd_range(start, end, &walk);
 }
 
 int walk_page_vma(struct vm_area_struct *vma, const struct mm_walk_ops *ops,