diff options
author | 2022-06-28 17:22:35 +0800 | |
---|---|---|
committer | 2022-08-08 18:06:43 -0700 | |
commit | e38f055d6d9a060dbf3f69fbac5b3b04a1566a56 (patch) | |
tree | 1953725b1234820c2328ede3e5c4d9d312348bce /mm/hugetlb.c | |
parent | mm: hugetlb_vmemmap: move code comments to vmemmap_dedup.rst (diff) | |
download | linux-e38f055d6d9a060dbf3f69fbac5b3b04a1566a56.tar.gz linux-e38f055d6d9a060dbf3f69fbac5b3b04a1566a56.tar.bz2 linux-e38f055d6d9a060dbf3f69fbac5b3b04a1566a56.zip |
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/20220628092235.91270-9-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Will Deacon <will@kernel.org>
Cc: Xiongchun Duan <duanxiongchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions