mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 23:19:34 +02:00
Merge tag 'fixes-2026-09-14' of git://git.kernel.org/pub/scm/linux/kernel/git/mm/memblock
Pull memblock fixes from Mike Rapoport:
"Fix for regions display in debugfs and MAINTAINERS update:
- Make sure that multiple flags on a memblock region are all
displayed in debugfs
- Update memblock tree tags in MAINTAINERS"
* tag 'fixes-2026-09-14' of git://git.kernel.org/pub/scm/linux/kernel/git/mm/memblock:
MAINTAINERS: update memblock tree URLs
mm: memblock: show all region flags in debugfs
This commit is contained in:
+11
-7
@@ -2908,14 +2908,18 @@ static int memblock_debug_show(struct seq_file *m, void *private)
|
||||
else
|
||||
seq_printf(m, "%4c ", 'x');
|
||||
if (reg->flags) {
|
||||
for (j = 0; j < count; j++) {
|
||||
if (reg->flags & (1U << j)) {
|
||||
seq_printf(m, "%s\n", flagname[j]);
|
||||
break;
|
||||
}
|
||||
unsigned int flags = reg->flags;
|
||||
bool first = true;
|
||||
|
||||
for (j = 0; flags; j++, flags >>= 1) {
|
||||
if (!(flags & 1))
|
||||
continue;
|
||||
if (!first)
|
||||
seq_putc(m, '|');
|
||||
seq_puts(m, j < count ? flagname[j] : "UNKNOWN");
|
||||
first = false;
|
||||
}
|
||||
if (j == count)
|
||||
seq_printf(m, "%s\n", "UNKNOWN");
|
||||
seq_putc(m, '\n');
|
||||
} else {
|
||||
seq_printf(m, "%s\n", "NONE");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user