diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index 07eda69412fb..a3af95b2cb6d 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <linux/list.h> | 7 | #include <linux/list.h> |
8 | #include <linux/memcontrol.h> | 8 | #include <linux/memcontrol.h> |
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | #include <linux/node.h> | ||
10 | 11 | ||
11 | #include <asm/atomic.h> | 12 | #include <asm/atomic.h> |
12 | #include <asm/page.h> | 13 | #include <asm/page.h> |
@@ -235,15 +236,29 @@ static inline int zone_reclaim(struct zone *z, gfp_t mask, unsigned int order) | |||
235 | #ifdef CONFIG_UNEVICTABLE_LRU | 236 | #ifdef CONFIG_UNEVICTABLE_LRU |
236 | extern int page_evictable(struct page *page, struct vm_area_struct *vma); | 237 | extern int page_evictable(struct page *page, struct vm_area_struct *vma); |
237 | extern void scan_mapping_unevictable_pages(struct address_space *); | 238 | extern void scan_mapping_unevictable_pages(struct address_space *); |
239 | |||
240 | extern unsigned long scan_unevictable_pages; | ||
241 | extern int scan_unevictable_handler(struct ctl_table *, int, struct file *, | ||
242 | void __user *, size_t *, loff_t *); | ||
243 | extern int scan_unevictable_register_node(struct node *node); | ||
244 | extern void scan_unevictable_unregister_node(struct node *node); | ||
238 | #else | 245 | #else |
239 | static inline int page_evictable(struct page *page, | 246 | static inline int page_evictable(struct page *page, |
240 | struct vm_area_struct *vma) | 247 | struct vm_area_struct *vma) |
241 | { | 248 | { |
242 | return 1; | 249 | return 1; |
243 | } | 250 | } |
251 | |||
244 | static inline void scan_mapping_unevictable_pages(struct address_space *mapping) | 252 | static inline void scan_mapping_unevictable_pages(struct address_space *mapping) |
245 | { | 253 | { |
246 | } | 254 | } |
255 | |||
256 | static inline int scan_unevictable_register_node(struct node *node) | ||
257 | { | ||
258 | return 0; | ||
259 | } | ||
260 | |||
261 | static inline void scan_unevictable_unregister_node(struct node *node) { } | ||
247 | #endif | 262 | #endif |
248 | 263 | ||
249 | extern int kswapd_run(int nid); | 264 | extern int kswapd_run(int nid); |