Skip to contentSkip to conversation

mm-fix-vmstat-after-removing-nr_bounce.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Jun 6, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: fix vmstat after removing NR_BOUNCE
has been removed from the -mm tree. Its filename was
mm-fix-vmstat-after-removing-nr_bounce.patch

This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: "Kirill A. Shutemov" <[email protected]>
Subject: mm: fix vmstat after removing NR_BOUNCE
Date: Thu, 29 May 2025 13:38:32 +0300

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.

---

 mm/vmstat.c |    1 -
 1 file changed, 1 deletion(-)
mm/vmstat.c renamed from mm/vmstat.c~mm-fix-vmstat-after-removing-nr_bounce +0 -1
@@ -1201,7 +1201,6 @@ const char * const vmstat_text[] = {
 	"nr_zone_unevictable",
 	"nr_zone_write_pending",
 	"nr_mlock",
-	"nr_bounce",
 #if IS_ENABLED(CONFIG_ZSMALLOC)
 	"nr_zspages",
 #endif

_

Patches currently in -mm which might be from [email protected] are

mm-vmstat-fix-build-with-memcg=y-and-vm_event_counters=n.patch mm-strictly-check-vmstat_text-array-size.patch mm-vmstat-utilize-designated-initializers-for-the-vmstat_text-array.patch