Skip to content

Commit 3aefb1f

Browse files
Wenjie Xuakpm00
authored andcommitted
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]>
1 parent 1151559 commit 3aefb1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/hugetlb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3733,7 +3733,7 @@ static void __init report_hugepages(void)
37333733

37343734
string_get_size(huge_page_size(h), 1, STRING_UNITS_2, buf, 32);
37353735
pr_info("HugeTLB: registered %s page size, pre-allocated %ld pages\n",
3736-
buf, h->free_huge_pages);
3736+
buf, h->nr_huge_pages);
37373737
if (nrinvalid)
37383738
pr_info("HugeTLB: %s page size: %lu invalid page%s discarded\n",
37393739
buf, nrinvalid, nrinvalid > 1 ? "s" : "");

0 commit comments

Comments
 (0)