]> www.infradead.org Git - users/hch/misc.git/commitdiff
mm: print the promo watermark in zoneinfo
authorKaiyang Zhao <kaiyang2@cs.cmu.edu>
Thu, 1 Aug 2024 23:25:48 +0000 (23:25 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:25:59 +0000 (20:25 -0700)
Print the promo watermark in zoneinfo just like other watermarks.  This
helps users check and verify all the watermarks are appropriate.

Link: https://lkml.kernel.org/r/20240801232548.36604-3-kaiyang2@cs.cmu.edu
Signed-off-by: Kaiyang Zhao <kaiyang2@cs.cmu.edu>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmstat.c

index 2dc97baf7d621f5e01f7d2313a33b13ea2a5eac7..aea58e9fce60c1edec8b4da80f1a7913571e1e57 100644 (file)
@@ -1743,6 +1743,7 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat,
                   "\n        min      %lu"
                   "\n        low      %lu"
                   "\n        high     %lu"
+                  "\n        promo    %lu"
                   "\n        spanned  %lu"
                   "\n        present  %lu"
                   "\n        managed  %lu"
@@ -1752,6 +1753,7 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat,
                   min_wmark_pages(zone),
                   low_wmark_pages(zone),
                   high_wmark_pages(zone),
+                  promo_wmark_pages(zone),
                   zone->spanned_pages,
                   zone->present_pages,
                   zone_managed_pages(zone),