aboutsummaryrefslogtreecommitdiffstats
path: root/lib/alloc_tag.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2025-05-29 10:38:32 +0000
committerAndrew Morton <[email protected]>2025-06-06 05:02:22 +0000
commit684088173b1852e5f5891a7b2a124b7974cb827d (patch)
treecb904ba47a3c47585327c5c6fae8e93e084fe5d8 /lib/alloc_tag.c
parentKVM: s390: rename PROT_NONE to PROT_TYPE_DUMMY (diff)
downloadkernel-684088173b1852e5f5891a7b2a124b7974cb827d.tar.gz
kernel-684088173b1852e5f5891a7b2a124b7974cb827d.zip
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: 194df9f66db8 ("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]>
Diffstat (limited to 'lib/alloc_tag.c')
0 files changed, 0 insertions, 0 deletions