diff options
Diffstat (limited to 'include/linux/vmstat.h')
-rw-r--r-- | include/linux/vmstat.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h index 58334d439516..ff5179f2b153 100644 --- a/include/linux/vmstat.h +++ b/include/linux/vmstat.h | |||
@@ -159,6 +159,16 @@ static inline unsigned long zone_page_state(struct zone *zone, | |||
159 | return x; | 159 | return x; |
160 | } | 160 | } |
161 | 161 | ||
162 | extern unsigned long global_lru_pages(void); | ||
163 | |||
164 | static inline unsigned long zone_lru_pages(struct zone *zone) | ||
165 | { | ||
166 | return (zone_page_state(zone, NR_ACTIVE_ANON) | ||
167 | + zone_page_state(zone, NR_ACTIVE_FILE) | ||
168 | + zone_page_state(zone, NR_INACTIVE_ANON) | ||
169 | + zone_page_state(zone, NR_INACTIVE_FILE)); | ||
170 | } | ||
171 | |||
162 | #ifdef CONFIG_NUMA | 172 | #ifdef CONFIG_NUMA |
163 | /* | 173 | /* |
164 | * Determine the per node value of a stat item. This function | 174 | * Determine the per node value of a stat item. This function |