mm: proc: remove redundant page validation of pte_page
Subsystems (3)
PATCH 1/1 mm: proc: remove redundant page validation of pte_page
pte_page() always returns a valid page, so remove the redundant page validation, as we did in many other places.
Signed-off-by Xianting Tian <[email protected]>
--- fs/proc/task_mmu.c | 2 -- 1 file changed, 2 deletions(-)
fs/proc/task_mmu.c +0 -2
@@ -1873,8 +1873,6 @@ static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask,return 0 ; page =pte_page (huge_pte); -if (!page) -return 0 ; md = walk->private;gather_stats (page, md,pte_dirty (huge_pte),1 );
Signature · 1 line
2.17.1
Quoted 5 lines · Xianting Tian
pte_page()always returns a valid page, so remove the redundant page validation, as we did in many other places.Signed-off-by Xianting Tian <[email protected]>---
Looks good.
Reviewed-by Chaitanya Kulkarni <[email protected]>
-ck