hugetlb: show nr_huge_pages in report_hugepages()
authorWenjie Xu <xuwenjie04@baidu.com>
Thu, 15 May 2025 11:42:31 +0000 (19:42 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 1 Jun 2025 05:46:11 +0000 (22:46 -0700)
commit3aefb1f06994ebbd94b7b2e5bf9cc3fecbd3eb39
tree46d3cd8b8a586a4e22d752cbdfea199ed274cc89
parent115155901db2593d7adbd3e84d0889f591fbb6fc
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/20250515114231.65824-1-xuwenjie04@baidu.com
Signed-off-by: Wenjie Xu <xuwenjie04@baidu.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Acked-by: Oscar Salvador <osalvador@suse.de>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c