From: Kaiyang Zhao Date: Thu, 1 Aug 2024 23:25:48 +0000 (+0000) Subject: mm: print the promo watermark in zoneinfo X-Git-Tag: v6.12-rc1~115^2~354 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=528afe6b9605dee42798c78deadba62e02e89d0f;p=thirdparty%2Fkernel%2Flinux.git mm: print the promo watermark in zoneinfo 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 Cc: Johannes Weiner Signed-off-by: Andrew Morton --- diff --git a/mm/vmstat.c b/mm/vmstat.c index 2dc97baf7d621..aea58e9fce60c 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -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),