diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 7d09d79997a4..a2113044d20a 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -180,6 +180,8 @@ extern int lru_add_drain_all(void); | |||
180 | extern void rotate_reclaimable_page(struct page *page); | 180 | extern void rotate_reclaimable_page(struct page *page); |
181 | extern void swap_setup(void); | 181 | extern void swap_setup(void); |
182 | 182 | ||
183 | extern void add_page_to_unevictable_list(struct page *page); | ||
184 | |||
183 | /** | 185 | /** |
184 | * lru_cache_add: add a page to the page lists | 186 | * lru_cache_add: add a page to the page lists |
185 | * @page: the page to add | 187 | * @page: the page to add |
@@ -228,6 +230,16 @@ static inline int zone_reclaim(struct zone *z, gfp_t mask, unsigned int order) | |||
228 | } | 230 | } |
229 | #endif | 231 | #endif |
230 | 232 | ||
233 | #ifdef CONFIG_UNEVICTABLE_LRU | ||
234 | extern int page_evictable(struct page *page, struct vm_area_struct *vma); | ||
235 | #else | ||
236 | static inline int page_evictable(struct page *page, | ||
237 | struct vm_area_struct *vma) | ||
238 | { | ||
239 | return 1; | ||
240 | } | ||
241 | #endif | ||
242 | |||
231 | extern int kswapd_run(int nid); | 243 | extern int kswapd_run(int nid); |
232 | 244 | ||
233 | #ifdef CONFIG_MMU | 245 | #ifdef CONFIG_MMU |