From b6309eee7c46a20f289c9769cf028a5f40d16ba5 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 14 May 2014 10:01:33 +1000 Subject: [PATCH] pagewalk-update-page-table-walker-core-fix-end-address-calculation-in-walk_page_range-fix s/min_t/min/ Cc: Naoya Horiguchi Cc: Sasha Levin 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 9f371ff67697..20b0eb528afa 100644 --- a/mm/pagewalk.c +++ b/mm/pagewalk.c @@ -321,7 +321,7 @@ int walk_page_range(unsigned long start, unsigned long end, next = vma->vm_start; } else { /* inside the found vma */ walk->vma = vma; - next = min_t(unsigned long, end, vma->vm_end); + next = min(end, vma->vm_end); err = walk_page_test(start, next, walk); if (skip_lower_level_walking(walk)) -- 2.39.5