Home
last modified time | relevance | path

Searched hist:d4241a04 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/hugetlbfs/
H A Dinode.cd4241a04 Tue May 04 20:33:34 CDT 2021 Miaohe Lin <linmiaohe@huawei.com> 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>