|
@@ -271,8 +271,18 @@ extern void scan_mapping_unevictable_pages(struct address_space *);
|
|
|
extern unsigned long scan_unevictable_pages;
|
|
|
extern int scan_unevictable_handler(struct ctl_table *, int,
|
|
|
void __user *, size_t *, loff_t *);
|
|
|
+#ifdef CONFIG_NUMA
|
|
|
extern int scan_unevictable_register_node(struct node *node);
|
|
|
extern void scan_unevictable_unregister_node(struct node *node);
|
|
|
+#else
|
|
|
+static inline int scan_unevictable_register_node(struct node *node)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+static inline void scan_unevictable_unregister_node(struct node *node)
|
|
|
+{
|
|
|
+}
|
|
|
+#endif
|
|
|
|
|
|
extern int kswapd_run(int nid);
|
|
|
extern void kswapd_stop(int nid);
|