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.h9
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);
186void dec_zone_page_state(struct page *, enum zone_stat_item); 186void dec_zone_page_state(struct page *, enum zone_stat_item);
187 187
188extern void inc_zone_state(struct zone *, enum zone_stat_item); 188extern void inc_zone_state(struct zone *, enum zone_stat_item);
189extern void __inc_zone_state(struct zone *, enum zone_stat_item);
190extern void dec_zone_state(struct zone *, enum zone_stat_item);
191extern void __dec_zone_state(struct zone *, enum zone_stat_item);
189 192
190void refresh_cpu_vm_stats(int); 193void refresh_cpu_vm_stats(int);
191void refresh_vm_stats(void); 194void 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
220static 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
217static inline void __dec_zone_page_state(struct page *page, 226static inline void __dec_zone_page_state(struct page *page,
218 enum zone_stat_item item) 227 enum zone_stat_item item)
219{ 228{