mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 22:36:17 +01:00
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>
This commit is contained in:
parent
6319c4f442
commit
a8d933dc33
2 changed files with 0 additions and 21 deletions
|
|
@ -286,10 +286,8 @@ void mod_node_page_state(struct pglist_data *, enum node_stat_item, long);
|
|||
void inc_node_page_state(struct page *, enum node_stat_item);
|
||||
void dec_node_page_state(struct page *, enum node_stat_item);
|
||||
|
||||
extern void inc_node_state(struct pglist_data *, enum node_stat_item);
|
||||
extern void __inc_zone_state(struct zone *, enum zone_stat_item);
|
||||
extern void __inc_node_state(struct pglist_data *, enum node_stat_item);
|
||||
extern void dec_zone_state(struct zone *, enum zone_stat_item);
|
||||
extern void __dec_zone_state(struct zone *, enum zone_stat_item);
|
||||
extern void __dec_node_state(struct pglist_data *, enum node_stat_item);
|
||||
|
||||
|
|
@ -394,10 +392,6 @@ static inline void __dec_node_page_state(struct page *page,
|
|||
#define dec_node_page_state __dec_node_page_state
|
||||
#define mod_node_page_state __mod_node_page_state
|
||||
|
||||
#define inc_zone_state __inc_zone_state
|
||||
#define inc_node_state __inc_node_state
|
||||
#define dec_zone_state __dec_zone_state
|
||||
|
||||
#define set_pgdat_percpu_threshold(pgdat, callback) { }
|
||||
|
||||
static inline void refresh_zone_stat_thresholds(void) { }
|
||||
|
|
|
|||
15
mm/vmstat.c
15
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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue