From 03836c730123063f9bfc18fa5ce95c4ea25a281f Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Mon, 22 Aug 2022 15:00:47 +0200 Subject: [PATCH] mm: pagewalk: don't check vma in walk_page_range_novma() 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 Signed-off-by: Andrew Morton --- mm/pagewalk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/pagewalk.c b/mm/pagewalk.c index ed12a6c434a9..f4d760193c25 100644 --- a/mm/pagewalk.c +++ b/mm/pagewalk.c @@ -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, -- 2.50.1