diff options
author | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 09:08:05 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 09:08:18 -0400 |
commit | e060c38434b2caa78efe7cedaff4191040b65a15 (patch) | |
tree | 407361230bf6733f63d8e788e4b5e6566ee04818 /include/linux/swap.h | |
parent | 10e4ac572eeffe5317019bd7330b6058a400dfc2 (diff) | |
parent | cc39c6a9bbdebfcf1a7dee64d83bf302bc38d941 (diff) |
Merge branch 'master' into for-next
Fast-forward merge with Linus to be able to merge patches
based on more recent version of the tree.
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index a273468f8285..c71f84bb62ec 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | #include <linux/node.h> | 10 | #include <linux/node.h> |
11 | 11 | ||
12 | #include <asm/atomic.h> | 12 | #include <linux/atomic.h> |
13 | #include <asm/page.h> | 13 | #include <asm/page.h> |
14 | 14 | ||
15 | struct notifier_block; | 15 | struct notifier_block; |
@@ -251,15 +251,13 @@ static inline void lru_cache_add_file(struct page *page) | |||
251 | /* linux/mm/vmscan.c */ | 251 | /* linux/mm/vmscan.c */ |
252 | extern unsigned long try_to_free_pages(struct zonelist *zonelist, int order, | 252 | extern unsigned long try_to_free_pages(struct zonelist *zonelist, int order, |
253 | gfp_t gfp_mask, nodemask_t *mask); | 253 | gfp_t gfp_mask, nodemask_t *mask); |
254 | extern int __isolate_lru_page(struct page *page, int mode, int file); | ||
254 | extern unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *mem, | 255 | extern unsigned long try_to_free_mem_cgroup_pages(struct mem_cgroup *mem, |
255 | gfp_t gfp_mask, bool noswap, | 256 | gfp_t gfp_mask, bool noswap); |
256 | unsigned int swappiness); | ||
257 | extern unsigned long mem_cgroup_shrink_node_zone(struct mem_cgroup *mem, | 257 | extern unsigned long mem_cgroup_shrink_node_zone(struct mem_cgroup *mem, |
258 | gfp_t gfp_mask, bool noswap, | 258 | gfp_t gfp_mask, bool noswap, |
259 | unsigned int swappiness, | ||
260 | struct zone *zone, | 259 | struct zone *zone, |
261 | unsigned long *nr_scanned); | 260 | unsigned long *nr_scanned); |
262 | extern int __isolate_lru_page(struct page *page, int mode, int file); | ||
263 | extern unsigned long shrink_all_memory(unsigned long nr_pages); | 261 | extern unsigned long shrink_all_memory(unsigned long nr_pages); |
264 | extern int vm_swappiness; | 262 | extern int vm_swappiness; |
265 | extern int remove_mapping(struct address_space *mapping, struct page *page); | 263 | extern int remove_mapping(struct address_space *mapping, struct page *page); |
@@ -299,7 +297,14 @@ static inline void scan_unevictable_unregister_node(struct node *node) | |||
299 | 297 | ||
300 | extern int kswapd_run(int nid); | 298 | extern int kswapd_run(int nid); |
301 | extern void kswapd_stop(int nid); | 299 | extern void kswapd_stop(int nid); |
302 | 300 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR | |
301 | extern int mem_cgroup_swappiness(struct mem_cgroup *mem); | ||
302 | #else | ||
303 | static inline int mem_cgroup_swappiness(struct mem_cgroup *mem) | ||
304 | { | ||
305 | return vm_swappiness; | ||
306 | } | ||
307 | #endif | ||
303 | #ifdef CONFIG_SWAP | 308 | #ifdef CONFIG_SWAP |
304 | /* linux/mm/page_io.c */ | 309 | /* linux/mm/page_io.c */ |
305 | extern int swap_readpage(struct page *); | 310 | extern int swap_readpage(struct page *); |