All of lore.kernel.org
 help / color / mirror / Atom feed
* + hugetlb-show-nr_huge_pages-in-report_hugepages.patch added to mm-new branch
@ 2025-05-20  1:09 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-05-20  1:09 UTC (permalink / raw)
  To: mm-commits, osalvador, muchun.song, lirongqing, xuwenjie04, akpm


The patch titled
     Subject: hugetlb: show nr_huge_pages in report_hugepages()
has been added to the -mm mm-new branch.  Its filename is
     hugetlb-show-nr_huge_pages-in-report_hugepages.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/hugetlb-show-nr_huge_pages-in-report_hugepages.patch

This patch will later appear in the mm-new branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews.  Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Wenjie Xu <xuwenjie04@baidu.com>
Subject: hugetlb: show nr_huge_pages in report_hugepages()
Date: Thu, 15 May 2025 19:42:31 +0800

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>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/hugetlb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/hugetlb.c~hugetlb-show-nr_huge_pages-in-report_hugepages
+++ a/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" : "");
_

Patches currently in -mm which might be from xuwenjie04@baidu.com are

hugetlb-show-nr_huge_pages-in-report_hugepages.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-05-20  1:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20  1:09 + hugetlb-show-nr_huge_pages-in-report_hugepages.patch added to mm-new branch Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.