diff options
author | 2021-02-24 12:06:57 -0800 | |
---|---|---|
committer | 2021-02-24 13:38:32 -0800 | |
commit | 0aa7f3544aaa02a7df5095dc1bc338bcd73b7872 (patch) | |
tree | fb419d52f2e9880dd12b4a009a7eaa0815bfe699 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm/hugetlb.c: fix unnecessary address expansion of pmd sharing (diff) | |
download | wireguard-linux-0aa7f3544aaa02a7df5095dc1bc338bcd73b7872.tar.xz wireguard-linux-0aa7f3544aaa02a7df5095dc1bc338bcd73b7872.zip |
mm/hugetlb: avoid unnecessary hugetlb_acct_memory() call
When reservation accounting remains unchanged, hugetlb_acct_memory() will
do nothing except holding and releasing hugetlb_lock. We should avoid
this unnecessary hugetlb_lock lock/unlock cycle which is happening on
'most' hugetlb munmap operations by check delta against 0 at the beginning
of hugetlb_acct_memory.
Link: https://lkml.kernel.org/r/20210115092013.61012-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions