mm: remove NR_BOUNCE zone stat
authorChristoph Hellwig <hch@lst.de>
Mon, 5 May 2025 08:11:26 +0000 (10:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 May 2025 19:22:39 +0000 (13:22 -0600)
The stat is always 0 now, so remove it and hardwire the user visible
output to 0.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20250505081138.3435992-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/base/node.c
fs/proc/meminfo.c
include/linux/mmzone.h
mm/show_mem.c

index cd13ef2870119fd2d9f6b6d3f84ad7797ce76732..618712071a1e2f0e307cb8f0876cf96111704bbf 100644 (file)
@@ -468,7 +468,7 @@ static ssize_t node_read_meminfo(struct device *dev,
                             nid, K(node_page_state(pgdat, NR_PAGETABLE)),
                             nid, K(node_page_state(pgdat, NR_SECONDARY_PAGETABLE)),
                             nid, 0UL,
-                            nid, K(sum_zone_node_page_state(nid, NR_BOUNCE)),
+                            nid, 0UL,
                             nid, K(node_page_state(pgdat, NR_WRITEBACK_TEMP)),
                             nid, K(sreclaimable +
                                    node_page_state(pgdat, NR_KERNEL_MISC_RECLAIMABLE)),
index 83be312159c985f77251c83f002dd53f14fe23f4..bc2bc60c36ccc1dab8913913056f5ff20b448490 100644 (file)
@@ -120,8 +120,7 @@ static int meminfo_proc_show(struct seq_file *m, void *v)
                    global_node_page_state(NR_SECONDARY_PAGETABLE));
 
        show_val_kb(m, "NFS_Unstable:   ", 0);
-       show_val_kb(m, "Bounce:         ",
-                   global_zone_page_state(NR_BOUNCE));
+       show_val_kb(m, "Bounce:         ", 0);
        show_val_kb(m, "WritebackTmp:   ",
                    global_node_page_state(NR_WRITEBACK_TEMP));
        show_val_kb(m, "CommitLimit:    ", vm_commit_limit());
index 6ccec1bf2896ff74fc75d484e51c64072da0f3c6..b1c459f7a4852b61052a2a7daf1f3b2cb6358644 100644 (file)
@@ -148,7 +148,6 @@ enum zone_stat_item {
        NR_ZONE_WRITE_PENDING,  /* Count of dirty, writeback and unstable pages */
        NR_MLOCK,               /* mlock()ed pages found and moved off LRU */
        /* Second 128 byte cacheline */
-       NR_BOUNCE,
 #if IS_ENABLED(CONFIG_ZSMALLOC)
        NR_ZSPAGES,             /* allocated in zsmalloc */
 #endif
index 6af13bcd2ab36e024177ee68ba122ac6cff9dd42..5acb51a9fc4983d20bc62a109660c4459e8fc099 100644 (file)
@@ -223,7 +223,7 @@ static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_z
                global_node_page_state(NR_SHMEM),
                global_node_page_state(NR_PAGETABLE),
                global_node_page_state(NR_SECONDARY_PAGETABLE),
-               global_zone_page_state(NR_BOUNCE),
+               0UL,
                global_node_page_state(NR_KERNEL_MISC_RECLAIMABLE),
                global_zone_page_state(NR_FREE_PAGES),
                free_pcp,
@@ -341,7 +341,7 @@ static void show_free_areas(unsigned int filter, nodemask_t *nodemask, int max_z
                        K(zone->present_pages),
                        K(zone_managed_pages(zone)),
                        K(zone_page_state(zone, NR_MLOCK)),
-                       K(zone_page_state(zone, NR_BOUNCE)),
+                       0UL,
                        K(free_pcp),
                        K(this_cpu_read(zone->per_cpu_pageset->count)),
                        K(zone_page_state(zone, NR_FREE_CMA_PAGES)));