]> git.baikalelectronics.ru Git - kernel.git/commit
fs/proc/task_mmu.c: remove redundant page validation of pte_page
authorXianting Tian <xianting.tian@linux.alibaba.com>
Fri, 29 Apr 2022 06:16:04 +0000 (23:16 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 29 Apr 2022 06:16:04 +0000 (23:16 -0700)
commitcdd2385193f680a8f9e3cb38669a95ea96f5ff3a
treea70df7e45bdc856eadfae9755e5fb07d3887d47e
parentf3bcb5e5baee98299e7f5082c13491b1e3449f70
fs/proc/task_mmu.c: 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.

Link: https://lkml.kernel.org/r/20220316025947.328276-1-xianting.tian@linux.alibaba.com
Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Sasha Levin <sashal@kernel.org>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/task_mmu.c