summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2023-07-17 14:36:44 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 20:12:37 +0300
commit58f341f772bb48b3d7b13dd6c0f9705ebdd02592 (patch)
treeb8f81099d3cb655d4c985dc7dc11580b08d91038 /include
parent43b3dfdd04553171488cb11d46d21948b6b90e27 (diff)
downloadlinux-58f341f772bb48b3d7b13dd6c0f9705ebdd02592.tar.xz
mm/memcg: minor cleanup for mc_handle_present_pte()
When pagetable lock is held, the page will always be page_mapped(). So remove unneeded page_mapped() check. Also the page can't be freed from under us in this case. So use get_page() to get extra page reference to simplify the code. No functional change intended. Link: https://lkml.kernel.org/r/20230717113644.3026478-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Muchun Song <muchun.song@linux.dev> Cc: Roman Gushchin <roman.gushchin@linux.dev> Cc: Shakeel Butt <shakeelb@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions