diff options
Diffstat (limited to 'include/linux/vmstat.h')
-rw-r--r-- | include/linux/vmstat.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index 5fad1613e7d6..16173b63ee67 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h | |||
@@ -173,9 +173,15 @@ static inline unsigned long node_page_state(int node, | |||
173 | #endif | 173 | #endif |
174 | zone_page_state(&zones[ZONE_DMA], item); | 174 | zone_page_state(&zones[ZONE_DMA], item); |
175 | } | 175 | } |
176 | |||
177 | extern void zone_statistics(struct zonelist *, struct zone *); | ||
178 | |||
176 | #else | 179 | #else |
180 | |||
177 | #define node_page_state(node, item) global_page_state(item) | 181 | #define node_page_state(node, item) global_page_state(item) |
178 | #endif | 182 | #define zone_statistics(_zl,_z) do { } while (0) |
183 | |||
184 | #endif /* CONFIG_NUMA */ | ||
179 | 185 | ||
180 | #define __add_zone_page_state(__z, __i, __d) \ | 186 | #define __add_zone_page_state(__z, __i, __d) \ |
181 | __mod_zone_page_state(__z, __i, __d) | 187 | __mod_zone_page_state(__z, __i, __d) |
@@ -190,6 +196,8 @@ static inline void zap_zone_vm_stats(struct zone *zone) | |||
190 | memset(zone->vm_stat, 0, sizeof(zone->vm_stat)); | 196 | memset(zone->vm_stat, 0, sizeof(zone->vm_stat)); |
191 | } | 197 | } |
192 | 198 | ||
199 | extern void inc_zone_state(struct zone *, enum zone_stat_item); | ||
200 | |||
193 | #ifdef CONFIG_SMP | 201 | #ifdef CONFIG_SMP |
194 | void __mod_zone_page_state(struct zone *, enum zone_stat_item item, int); | 202 | void __mod_zone_page_state(struct zone *, enum zone_stat_item item, int); |
195 | void __inc_zone_page_state(struct page *, enum zone_stat_item); | 203 | void __inc_zone_page_state(struct page *, enum zone_stat_item); |