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

Meijing Zhao posted 2 patches 1 month, 1 week ago
mm/memblock.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
[PATCH 0/2] mm: memblock: fix debugfs flag reporting
Posted by Meijing Zhao 1 month, 1 week ago
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