]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
s390/mm: improve debugfs ptdump markers walking
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 17 Nov 2017 16:55:07 +0000 (17:55 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:31 +0000 (11:21 +0200)
This allows to print multiple markers when they happened to have the
same value.

...
0x001bfffff0100000-0x001c000000000000       255M PMD I
---[ Kasan Shadow End ]---
---[ vmemmap Area ]---
0x001c000000000000-0x001c000002000000        32M PMD RW X
...

Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/dump_pagetables.c

index 15ee7dc48215ee565b9355d264560d184b912e6a..363f6470d742e5ee3a198aab507362207cc5f16b 100644 (file)
@@ -100,7 +100,7 @@ static void note_page(struct seq_file *m, struct pg_state *st,
                }
                seq_printf(m, "%9lu%c ", delta, *unit);
                print_prot(m, st->current_prot, st->level);
-               if (st->current_address >= st->marker[1].start_address) {
+               while (st->current_address >= st->marker[1].start_address) {
                        st->marker++;
                        seq_printf(m, "---[ %s ]---\n", st->marker->name);
                }