[PATCH 0/2] mm: memblock: fix debugfs flag reporting

From: Meijing Zhao

Date: Wed Aug 19 2026 - 03:55:10 EST


From: Meijing Zhao <zhaomeijing@xxxxxxxxxxx>

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