summaryrefslogtreecommitdiff
path: root/mm/vmstat.c
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2025-12-25 21:02:13 +0000
committerAndrew Morton <akpm@linux-foundation.org>2026-01-20 19:24:52 -0800
commita8d933dc3354bfb9db1fc0e09c289ec1778ee271 (patch)
tree11a4ad0d78d2394dc63793312ebcccbc72d564cc /mm/vmstat.c
parent6319c4f44234c3849fdb2c3f72c45353aa428d3f (diff)
downloadlinux-next-a8d933dc3354bfb9db1fc0e09c289ec1778ee271.tar.gz
linux-next-a8d933dc3354bfb9db1fc0e09c289ec1778ee271.zip
mm/vmstat: remove unused node and zone state helpers
Several helper functions for managing node and zone states have become obsolete and no longer have any callers within the kernel. inc_node_state() inc_zone_state() dec_zone_state() This commit removes the dead code. Link: https://lkml.kernel.org/r/20251225210213.2553-1-richard.weiyang@gmail.com Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Reviewed-by: Joshua Hahn <joshua.hahnjy@gmail.com> Acked-by: David Hildenbrand (Red Hat) <david@kernel.org> Acked-by: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/vmstat.c')
-rw-r--r--mm/vmstat.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index bd2af431ff86..6ae8891c9693 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -672,11 +672,6 @@ void mod_node_page_state(struct pglist_data *pgdat, enum node_stat_item item,
}
EXPORT_SYMBOL(mod_node_page_state);
-void inc_node_state(struct pglist_data *pgdat, enum node_stat_item item)
-{
- mod_node_state(pgdat, item, 1, 1);
-}
-
void inc_node_page_state(struct page *page, enum node_stat_item item)
{
mod_node_state(page_pgdat(page), item, 1, 1);
@@ -725,16 +720,6 @@ void dec_zone_page_state(struct page *page, enum zone_stat_item item)
}
EXPORT_SYMBOL(dec_zone_page_state);
-void inc_node_state(struct pglist_data *pgdat, enum node_stat_item item)
-{
- unsigned long flags;
-
- local_irq_save(flags);
- __inc_node_state(pgdat, item);
- local_irq_restore(flags);
-}
-EXPORT_SYMBOL(inc_node_state);
-
void mod_node_page_state(struct pglist_data *pgdat, enum node_stat_item item,
long delta)
{