aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/vmstat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/vmstat.h')
-rw-r--r--include/linux/vmstat.h25
1 files changed, 1 insertions, 24 deletions
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h
index 82e7db7f7100..5dbc8b0ee567 100644
--- a/include/linux/vmstat.h
+++ b/include/linux/vmstat.h
@@ -161,30 +161,8 @@ static inline unsigned long zone_page_state_snapshot(struct zone *zone,
161} 161}
162 162
163#ifdef CONFIG_NUMA 163#ifdef CONFIG_NUMA
164/*
165 * Determine the per node value of a stat item. This function
166 * is called frequently in a NUMA machine, so try to be as
167 * frugal as possible.
168 */
169static inline unsigned long node_page_state(int node,
170 enum zone_stat_item item)
171{
172 struct zone *zones = NODE_DATA(node)->node_zones;
173
174 return
175#ifdef CONFIG_ZONE_DMA
176 zone_page_state(&zones[ZONE_DMA], item) +
177#endif
178#ifdef CONFIG_ZONE_DMA32
179 zone_page_state(&zones[ZONE_DMA32], item) +
180#endif
181#ifdef CONFIG_HIGHMEM
182 zone_page_state(&zones[ZONE_HIGHMEM], item) +
183#endif
184 zone_page_state(&zones[ZONE_NORMAL], item) +
185 zone_page_state(&zones[ZONE_MOVABLE], item);
186}
187 164
165extern unsigned long node_page_state(int node, enum zone_stat_item item);
188extern void zone_statistics(struct zone *, struct zone *, gfp_t gfp); 166extern void zone_statistics(struct zone *, struct zone *, gfp_t gfp);
189 167
190#else 168#else
@@ -269,7 +247,6 @@ static inline void __dec_zone_page_state(struct page *page,
269 247
270#define set_pgdat_percpu_threshold(pgdat, callback) { } 248#define set_pgdat_percpu_threshold(pgdat, callback) { }
271 249
272static inline void refresh_cpu_vm_stats(int cpu) { }
273static inline void refresh_zone_stat_thresholds(void) { } 250static inline void refresh_zone_stat_thresholds(void) { }
274static inline void cpu_vm_stats_fold(int cpu) { } 251static inline void cpu_vm_stats_fold(int cpu) { }
275 252