diff options
author | Muchun Song <[email protected]> | 2022-06-28 17:22:35 +0800 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2022-08-08 18:06:43 -0700 |
commit | e38f055d6d9a060dbf3f69fbac5b3b04a1566a56 (patch) | |
tree | 1953725b1234820c2328ede3e5c4d9d312348bce /tools/perf/util/trace-event-scripting.c | |
parent | 838691a1c0ec44739db558834e6954d62577d6b8 (diff) |
mm: hugetlb_vmemmap: use PTRS_PER_PTE instead of PMD_SIZE / PAGE_SIZE
There is already a macro PTRS_PER_PTE to represent the number of page
table entries, just use it.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Muchun Song <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Oscar Salvador <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Xiongchun Duan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions