diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2012-07-31 19:43:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 21:42:43 -0400 |
commit | c255a458055e459f65eb7b7f51dc5dbdd0caf1d8 (patch) | |
tree | b143b1914eeb6f27f53e30f9f0275d0f1ca5480b /include/linux/swap.h | |
parent | 80934513b230bfcf70265f2ef0fdae89fb391633 (diff) |
memcg: rename config variables
Sanity:
CONFIG_CGROUP_MEM_RES_CTLR -> CONFIG_MEMCG
CONFIG_CGROUP_MEM_RES_CTLR_SWAP -> CONFIG_MEMCG_SWAP
CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED -> CONFIG_MEMCG_SWAP_ENABLED
CONFIG_CGROUP_MEM_RES_CTLR_KMEM -> CONFIG_MEMCG_KMEM
[mhocko@suse.cz: fix missed bits]
Cc: Glauber Costa <glommer@parallels.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: David Rientjes <rientjes@google.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index c84ec68eaec9..9a16bb1cefd1 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -301,7 +301,7 @@ static inline void scan_unevictable_unregister_node(struct node *node) | |||
301 | 301 | ||
302 | extern int kswapd_run(int nid); | 302 | extern int kswapd_run(int nid); |
303 | extern void kswapd_stop(int nid); | 303 | extern void kswapd_stop(int nid); |
304 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR | 304 | #ifdef CONFIG_MEMCG |
305 | extern int mem_cgroup_swappiness(struct mem_cgroup *mem); | 305 | extern int mem_cgroup_swappiness(struct mem_cgroup *mem); |
306 | #else | 306 | #else |
307 | static inline int mem_cgroup_swappiness(struct mem_cgroup *mem) | 307 | static inline int mem_cgroup_swappiness(struct mem_cgroup *mem) |
@@ -309,7 +309,7 @@ static inline int mem_cgroup_swappiness(struct mem_cgroup *mem) | |||
309 | return vm_swappiness; | 309 | return vm_swappiness; |
310 | } | 310 | } |
311 | #endif | 311 | #endif |
312 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP | 312 | #ifdef CONFIG_MEMCG_SWAP |
313 | extern void mem_cgroup_uncharge_swap(swp_entry_t ent); | 313 | extern void mem_cgroup_uncharge_swap(swp_entry_t ent); |
314 | #else | 314 | #else |
315 | static inline void mem_cgroup_uncharge_swap(swp_entry_t ent) | 315 | static inline void mem_cgroup_uncharge_swap(swp_entry_t ent) |
@@ -360,7 +360,7 @@ extern int reuse_swap_page(struct page *); | |||
360 | extern int try_to_free_swap(struct page *); | 360 | extern int try_to_free_swap(struct page *); |
361 | struct backing_dev_info; | 361 | struct backing_dev_info; |
362 | 362 | ||
363 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR | 363 | #ifdef CONFIG_MEMCG |
364 | extern void | 364 | extern void |
365 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout); | 365 | mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout); |
366 | #else | 366 | #else |