diff options
| author | 2021-05-04 18:33:34 -0700 | |
|---|---|---|
| committer | 2021-05-05 11:27:20 -0700 | |
| commit | d4241a049ac0049fe96b3dae0598092517dbf6bd (patch) | |
| tree | 17a9a6758bcb4f3cc25e1b31712a548c8bcfc7bc /tools/perf/scripts/python/flamegraph.py | |
| parent | mm/hugetlb: simplify the code when alloc_huge_page() failed in hugetlb_no_page() (diff) | |
mm/hugetlb: avoid calculating fault_mutex_hash in truncate_op case
The fault_mutex hashing overhead can be avoided in truncate_op case
because page faults can not race with truncation in this routine.
So calculate hash for fault_mutex only in !truncate_op case to save some
cpu cycles.
Link: https://lkml.kernel.org/r/20210308112809.26107-6-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
