Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mm: memblock: fix debugfs flag reporting
@ 2026-08-19  7:54 Meijing Zhao
  2026-08-19  7:54 ` [PATCH 1/2] mm: memblock: add missing HugeTLB flag name Meijing Zhao
  2026-08-19  7:54 ` [PATCH 2/2] mm: memblock: show all region flags in debugfs Meijing Zhao
  0 siblings, 2 replies; 4+ messages in thread
From: Meijing Zhao @ 2026-08-19  7:54 UTC (permalink / raw)
  To: Mike Rapoport, Andrew Morton
  Cc: linux-mm, linux-kernel, Wandun Chen, Meijing Zhao

From: Meijing Zhao <zhaomeijing@lixiang.com>

The memblock debugfs interface has two issues when reporting region
flags. MEMBLOCK_RSRV_HUGETLB has no corresponding name, and regions
with multiple flags only show the lowest set bit.

Add the missing HugeTLB flag name and make memblock_debug_show() print
all flags. With the series applied, a HugeTLB bootmem reservation is
reported as:

  RSV_KERN|RSV_HUGETLB

Meijing Zhao (2):
  mm: memblock: add missing HugeTLB flag name
  mm: memblock: show all region flags in debugfs

 mm/memblock.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-23 12:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19  7:54 [PATCH 0/2] mm: memblock: fix debugfs flag reporting Meijing Zhao
2026-08-19  7:54 ` [PATCH 1/2] mm: memblock: add missing HugeTLB flag name Meijing Zhao
2026-08-19  7:54 ` [PATCH 2/2] mm: memblock: show all region flags in debugfs Meijing Zhao
2026-08-23 12:14   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox