Skip to content

Commit 6840881

Browse files
kirylakpm00
authored andcommitted
mm: fix vmstat after removing NR_BOUNCE
Hongyu noticed that the nr_unaccepted counter kept growing even in the absence of unaccepted memory on the machine. This happens due to a commit that removed NR_BOUNCE: it removed the counter from the enum zone_stat_item, but left it in the vmstat_text array. As a result, all counters below nr_bounce in /proc/vmstat are shifted by one line, causing the numa_hit counter to be labeled as nr_unaccepted. To fix this issue, remove nr_bounce from the vmstat_text array. Link: https://lkml.kernel.org/r/[email protected] Fixes: 194df9f ("mm: remove NR_BOUNCE zone stat") Signed-off-by: Kirill A. Shutemov <[email protected]> Reported-by: Hongyu Ning <[email protected]> Reviewed-by: Jens Axboe <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Acked-by: Michal Hocko <[email protected]> Reviewed-by: Shakeel Butt <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Hannes Reinecke <[email protected]> Cc: Johannes Thumshirn <[email protected]> Cc: Jens Axboe <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 15ac613 commit 6840881

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mm/vmstat.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,6 @@ const char * const vmstat_text[] = {
12011201
"nr_zone_unevictable",
12021202
"nr_zone_write_pending",
12031203
"nr_mlock",
1204-
"nr_bounce",
12051204
#if IS_ENABLED(CONFIG_ZSMALLOC)
12061205
"nr_zspages",
12071206
#endif

0 commit comments

Comments
 (0)