diff options
Diffstat (limited to 'include/linux/vmstat.h')
-rw-r--r-- | include/linux/vmstat.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index 5e9803ed17fc..c8d55bcc09b9 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h | |||
@@ -186,6 +186,9 @@ void inc_zone_page_state(struct page *, enum zone_stat_item); | |||
186 | void dec_zone_page_state(struct page *, enum zone_stat_item); | 186 | void dec_zone_page_state(struct page *, enum zone_stat_item); |
187 | 187 | ||
188 | extern void inc_zone_state(struct zone *, enum zone_stat_item); | 188 | extern void inc_zone_state(struct zone *, enum zone_stat_item); |
189 | extern void __inc_zone_state(struct zone *, enum zone_stat_item); | ||
190 | extern void dec_zone_state(struct zone *, enum zone_stat_item); | ||
191 | extern void __dec_zone_state(struct zone *, enum zone_stat_item); | ||
189 | 192 | ||
190 | void refresh_cpu_vm_stats(int); | 193 | void refresh_cpu_vm_stats(int); |
191 | void refresh_vm_stats(void); | 194 | void refresh_vm_stats(void); |
@@ -214,6 +217,12 @@ static inline void __inc_zone_page_state(struct page *page, | |||
214 | __inc_zone_state(page_zone(page), item); | 217 | __inc_zone_state(page_zone(page), item); |
215 | } | 218 | } |
216 | 219 | ||
220 | static inline void __dec_zone_state(struct zone *zone, enum zone_stat_item item) | ||
221 | { | ||
222 | atomic_long_dec(&zone->vm_stat[item]); | ||
223 | atomic_long_dec(&vm_stat[item]); | ||
224 | } | ||
225 | |||
217 | static inline void __dec_zone_page_state(struct page *page, | 226 | static inline void __dec_zone_page_state(struct page *page, |
218 | enum zone_stat_item item) | 227 | enum zone_stat_item item) |
219 | { | 228 | { |