diff options
author | 2022-07-04 21:21:55 +0800 | |
---|---|---|
committer | 2022-07-17 17:14:45 -0700 | |
commit | 3ce4fee4401206cf5a2c476ec0ee6c90191dfade (patch) | |
tree | 10573cb345959ad3e2d8a557b07c6c9ae3992c8c /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | mm/huge_memory: fix comment in zap_huge_pud (diff) | |
download | linux-dev-3ce4fee4401206cf5a2c476ec0ee6c90191dfade.tar.xz linux-dev-3ce4fee4401206cf5a2c476ec0ee6c90191dfade.zip |
mm/huge_memory: check pmd_present first in is_huge_zero_pmd
When pmd is non-present, pmd_pfn returns an insane value. So we should
check pmd_present first to avoid acquiring such insane value and also
avoid touching possible cold huge_zero_pfn cache line when pmd isn't
present.
Link: https://lkml.kernel.org/r/20220704132201.14611-11-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions