diff options
| author | Wenjie Xu <[email protected]> | 2025-05-15 11:42:31 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-06-01 05:46:11 +0000 |
| commit | 3aefb1f06994ebbd94b7b2e5bf9cc3fecbd3eb39 (patch) | |
| tree | 46d3cd8b8a586a4e22d752cbdfea199ed274cc89 /mm/hugetlb.c | |
| parent | selftests/mm: skip hugevm test if kernel config file is not present (diff) | |
| download | kernel-3aefb1f06994ebbd94b7b2e5bf9cc3fecbd3eb39.tar.gz kernel-3aefb1f06994ebbd94b7b2e5bf9cc3fecbd3eb39.zip | |
hugetlb: show nr_huge_pages in report_hugepages()
The number of pre-allocated huge pages should be nr_huge_pages, not
free_huge_pages, although they are same during booting stage
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Wenjie Xu <[email protected]>
Signed-off-by: Li RongQing <[email protected]>
Acked-by: Oscar Salvador <[email protected]>
Cc: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/hugetlb.c')
| -rw-r--r-- | mm/hugetlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index d53caf96a4b2..5a0bf1ea48f9 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -3733,7 +3733,7 @@ static void __init report_hugepages(void) string_get_size(huge_page_size(h), 1, STRING_UNITS_2, buf, 32); pr_info("HugeTLB: registered %s page size, pre-allocated %ld pages\n", - buf, h->free_huge_pages); + buf, h->nr_huge_pages); if (nrinvalid) pr_info("HugeTLB: %s page size: %lu invalid page%s discarded\n", buf, nrinvalid, nrinvalid > 1 ? "s" : ""); |
