diff options
author | 2021-02-24 12:07:46 -0800 | |
---|---|---|
committer | 2021-02-24 13:38:33 -0800 | |
commit | aca78307bfdaf3f99e040616f41aab7f8a566dfc (patch) | |
tree | 2f48a91e06bb03c56375ccc9db0d74228b0f495c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm/hugetlb: remove unnecessary VM_BUG_ON_PAGE on putback_active_hugepage() (diff) | |
download | wireguard-linux-aca78307bfdaf3f99e040616f41aab7f8a566dfc.tar.xz wireguard-linux-aca78307bfdaf3f99e040616f41aab7f8a566dfc.zip |
mm/hugetlb: use helper huge_page_size() to get hugepage size
We can use helper huge_page_size() to get the hugepage size directly to
simplify the code slightly.
[linmiaohe@huawei.com: use helper huge_page_size() to get hugepage size]
Link: https://lkml.kernel.org/r/20210209021803.49211-1-linmiaohe@huawei.com
Link: https://lkml.kernel.org/r/20210208082450.15716-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Reviewed-by: David Hildenbrand <david@redhat.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