The patch titled Subject: mm/vmstat.c: do not show lowmem reserve protection information of empty zone has been added to the -mm tree. Its filename is mm-vmstatc-do-not-show-lowmem-reserve-protection-information-of-empty-zone.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-vmstatc-do-not-show-lowmem-reserve-protection-information-of-empty-zone.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-vmstatc-do-not-show-lowmem-reserve-protection-information-of-empty-zone.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Baoquan He <bhe@xxxxxxxxxx> Subject: mm/vmstat.c: do not show lowmem reserve protection information of empty zone Because the lowmem reserve protection of a zone can't tell anything if the zone is empty, except of adding one more line in /proc/zoneinfo. Let's remove it from that zone's showing. Link: http://lkml.kernel.org/r/20200402140113.3696-4-bhe@xxxxxxxxxx Signed-off-by: Baoquan He <bhe@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmstat.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- a/mm/vmstat.c~mm-vmstatc-do-not-show-lowmem-reserve-protection-information-of-empty-zone +++ a/mm/vmstat.c @@ -1590,6 +1590,12 @@ static void zoneinfo_show_print(struct s zone->present_pages, zone_managed_pages(zone)); + /* If unpopulated, no other information is useful */ + if (!populated_zone(zone)) { + seq_putc(m, '\n'); + return; + } + seq_printf(m, "\n protection: (%ld", zone->lowmem_reserve[0]); @@ -1597,12 +1603,6 @@ static void zoneinfo_show_print(struct s seq_printf(m, ", %ld", zone->lowmem_reserve[i]); seq_putc(m, ')'); - /* If unpopulated, no other information is useful */ - if (!populated_zone(zone)) { - seq_putc(m, '\n'); - return; - } - for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++) seq_printf(m, "\n %-12s %lu", zone_stat_name(i), zone_page_state(zone, i)); _ Patches currently in -mm which might be from bhe@xxxxxxxxxx are mm-memmap_init-iterate-over-memblock-regions-rather-that-check-each-pfn.patch mm-remove-unused-free_bootmem_with_active_regions.patch mm-page_allocc-only-tune-sysctl_lowmem_reserve_ratio-value-once-when-changing-it.patch mm-page_allocc-clear-out-zone-lowmem_reserve-if-the-zone-is-empty.patch mm-vmstatc-do-not-show-lowmem-reserve-protection-information-of-empty-zone.patch