Skip to content

Commit c255a45

Browse files
akpm00torvalds
authored andcommitted
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>
1 parent 8093451 commit c255a45

33 files changed

+78
-78
lines changed

Documentation/cgroups/memory.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ the cgroup that brought it in -- this will happen on memory pressure).
187187
But see section 8.2: when moving a task to another cgroup, its pages may
188188
be recharged to the new cgroup, if move_charge_at_immigrate has been chosen.
189189

190-
Exception: If CONFIG_CGROUP_CGROUP_MEM_RES_CTLR_SWAP is not used.
190+
Exception: If CONFIG_CGROUP_CGROUP_MEMCG_SWAP is not used.
191191
When you do swapoff and make swapped-out pages of shmem(tmpfs) to
192192
be backed into memory in force, charges for pages are accounted against the
193193
caller of swapoff rather than the users of shmem.
194194

195-
2.4 Swap Extension (CONFIG_CGROUP_MEM_RES_CTLR_SWAP)
195+
2.4 Swap Extension (CONFIG_MEMCG_SWAP)
196196

197197
Swap Extension allows you to record charge for swap. A swapped-in page is
198198
charged back to original page allocator if possible.
@@ -259,7 +259,7 @@ When oom event notifier is registered, event will be delivered.
259259
per-zone-per-cgroup LRU (cgroup's private LRU) is just guarded by
260260
zone->lru_lock, it has no lock of its own.
261261

262-
2.7 Kernel Memory Extension (CONFIG_CGROUP_MEM_RES_CTLR_KMEM)
262+
2.7 Kernel Memory Extension (CONFIG_MEMCG_KMEM)
263263

264264
With the Kernel memory extension, the Memory Controller is able to limit
265265
the amount of kernel memory used by the system. Kernel memory is fundamentally
@@ -286,8 +286,8 @@ per cgroup, instead of globally.
286286

287287
a. Enable CONFIG_CGROUPS
288288
b. Enable CONFIG_RESOURCE_COUNTERS
289-
c. Enable CONFIG_CGROUP_MEM_RES_CTLR
290-
d. Enable CONFIG_CGROUP_MEM_RES_CTLR_SWAP (to use swap extension)
289+
c. Enable CONFIG_MEMCG
290+
d. Enable CONFIG_MEMCG_SWAP (to use swap extension)
291291

292292
1. Prepare the cgroups (see cgroups.txt, Why are cgroups needed?)
293293
# mount -t tmpfs none /sys/fs/cgroup

arch/powerpc/configs/chroma_defconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ CONFIG_CGROUP_DEVICE=y
2121
CONFIG_CPUSETS=y
2222
CONFIG_CGROUP_CPUACCT=y
2323
CONFIG_RESOURCE_COUNTERS=y
24-
CONFIG_CGROUP_MEM_RES_CTLR=y
25-
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
24+
CONFIG_CGROUP_MEMCG=y
25+
CONFIG_CGROUP_MEMCG_SWAP=y
2626
CONFIG_NAMESPACES=y
2727
CONFIG_RELAY=y
2828
CONFIG_BLK_DEV_INITRD=y

arch/s390/defconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CONFIG_CGROUPS=y
1313
CONFIG_CPUSETS=y
1414
CONFIG_CGROUP_CPUACCT=y
1515
CONFIG_RESOURCE_COUNTERS=y
16-
CONFIG_CGROUP_MEM_RES_CTLR=y
16+
CONFIG_CGROUP_MEMCG=y
1717
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
1818
CONFIG_CGROUP_SCHED=y
1919
CONFIG_RT_GROUP_SCHED=y

arch/sh/configs/apsh4ad0a_defconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CONFIG_CGROUP_FREEZER=y
1111
CONFIG_CGROUP_DEVICE=y
1212
CONFIG_CGROUP_CPUACCT=y
1313
CONFIG_RESOURCE_COUNTERS=y
14-
CONFIG_CGROUP_MEM_RES_CTLR=y
14+
CONFIG_CGROUP_MEMCG=y
1515
CONFIG_BLK_CGROUP=y
1616
CONFIG_NAMESPACES=y
1717
CONFIG_BLK_DEV_INITRD=y

arch/sh/configs/sdk7786_defconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ CONFIG_CPUSETS=y
1818
# CONFIG_PROC_PID_CPUSET is not set
1919
CONFIG_CGROUP_CPUACCT=y
2020
CONFIG_RESOURCE_COUNTERS=y
21-
CONFIG_CGROUP_MEM_RES_CTLR=y
22-
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
21+
CONFIG_CGROUP_MEMCG=y
22+
CONFIG_CGROUP_MEMCG_SWAP=y
2323
CONFIG_CGROUP_SCHED=y
2424
CONFIG_RT_GROUP_SCHED=y
2525
CONFIG_BLK_CGROUP=y

arch/sh/configs/se7206_defconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CONFIG_CGROUP_DEBUG=y
1111
CONFIG_CGROUP_DEVICE=y
1212
CONFIG_CGROUP_CPUACCT=y
1313
CONFIG_RESOURCE_COUNTERS=y
14-
CONFIG_CGROUP_MEM_RES_CTLR=y
14+
CONFIG_CGROUP_MEMCG=y
1515
CONFIG_RELAY=y
1616
CONFIG_NAMESPACES=y
1717
CONFIG_UTS_NS=y

arch/sh/configs/shx3_defconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CONFIG_CGROUP_FREEZER=y
1313
CONFIG_CGROUP_DEVICE=y
1414
CONFIG_CGROUP_CPUACCT=y
1515
CONFIG_RESOURCE_COUNTERS=y
16-
CONFIG_CGROUP_MEM_RES_CTLR=y
16+
CONFIG_CGROUP_MEMCG=y
1717
CONFIG_RELAY=y
1818
CONFIG_NAMESPACES=y
1919
CONFIG_UTS_NS=y

arch/sh/configs/urquell_defconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ CONFIG_CPUSETS=y
1515
# CONFIG_PROC_PID_CPUSET is not set
1616
CONFIG_CGROUP_CPUACCT=y
1717
CONFIG_RESOURCE_COUNTERS=y
18-
CONFIG_CGROUP_MEM_RES_CTLR=y
19-
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
18+
CONFIG_CGROUP_MEMCG=y
19+
CONFIG_CGROUP_MEMCG_SWAP=y
2020
CONFIG_CGROUP_SCHED=y
2121
CONFIG_RT_GROUP_SCHED=y
2222
CONFIG_BLK_DEV_INITRD=y

arch/tile/configs/tilegx_defconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ CONFIG_CGROUP_DEVICE=y
1818
CONFIG_CPUSETS=y
1919
CONFIG_CGROUP_CPUACCT=y
2020
CONFIG_RESOURCE_COUNTERS=y
21-
CONFIG_CGROUP_MEM_RES_CTLR=y
22-
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
21+
CONFIG_CGROUP_MEMCG=y
22+
CONFIG_CGROUP_MEMCG_SWAP=y
2323
CONFIG_CGROUP_SCHED=y
2424
CONFIG_RT_GROUP_SCHED=y
2525
CONFIG_BLK_CGROUP=y

arch/tile/configs/tilepro_defconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ CONFIG_CGROUP_DEVICE=y
1717
CONFIG_CPUSETS=y
1818
CONFIG_CGROUP_CPUACCT=y
1919
CONFIG_RESOURCE_COUNTERS=y
20-
CONFIG_CGROUP_MEM_RES_CTLR=y
21-
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
20+
CONFIG_CGROUP_MEMCG=y
21+
CONFIG_CGROUP_MEMCG_SWAP=y
2222
CONFIG_CGROUP_SCHED=y
2323
CONFIG_RT_GROUP_SCHED=y
2424
CONFIG_BLK_CGROUP=y

arch/um/defconfig

+4-4
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ CONFIG_CPUSETS=y
155155
CONFIG_PROC_PID_CPUSET=y
156156
CONFIG_CGROUP_CPUACCT=y
157157
CONFIG_RESOURCE_COUNTERS=y
158-
CONFIG_CGROUP_MEM_RES_CTLR=y
159-
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
160-
# CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED is not set
161-
# CONFIG_CGROUP_MEM_RES_CTLR_KMEM is not set
158+
CONFIG_CGROUP_MEMCG=y
159+
CONFIG_CGROUP_MEMCG_SWAP=y
160+
# CONFIG_CGROUP_MEMCG_SWAP_ENABLED is not set
161+
# CONFIG_CGROUP_MEMCG_KMEM is not set
162162
CONFIG_CGROUP_SCHED=y
163163
CONFIG_FAIR_GROUP_SCHED=y
164164
# CONFIG_CFS_BANDWIDTH is not set

include/linux/cgroup_subsys.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SUBSYS(cpuacct)
3131

3232
/* */
3333

34-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
34+
#ifdef CONFIG_MEMCG
3535
SUBSYS(mem_cgroup)
3636
#endif
3737

include/linux/memcontrol.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct mem_cgroup_reclaim_cookie {
3838
unsigned int generation;
3939
};
4040

41-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
41+
#ifdef CONFIG_MEMCG
4242
/*
4343
* All "charge" functions with gfp_mask should use GFP_KERNEL or
4444
* (gfp_mask & GFP_RECLAIM_MASK). In current implementatin, memcg doesn't
@@ -124,7 +124,7 @@ extern void mem_cgroup_print_oom_info(struct mem_cgroup *memcg,
124124
extern void mem_cgroup_replace_page_cache(struct page *oldpage,
125125
struct page *newpage);
126126

127-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
127+
#ifdef CONFIG_MEMCG_SWAP
128128
extern int do_swap_account;
129129
#endif
130130

@@ -193,7 +193,7 @@ void mem_cgroup_split_huge_fixup(struct page *head);
193193
bool mem_cgroup_bad_page_check(struct page *page);
194194
void mem_cgroup_print_bad_page(struct page *page);
195195
#endif
196-
#else /* CONFIG_CGROUP_MEM_RES_CTLR */
196+
#else /* CONFIG_MEMCG */
197197
struct mem_cgroup;
198198

199199
static inline int mem_cgroup_newpage_charge(struct page *page,
@@ -384,9 +384,9 @@ static inline void mem_cgroup_replace_page_cache(struct page *oldpage,
384384
struct page *newpage)
385385
{
386386
}
387-
#endif /* CONFIG_CGROUP_MEM_RES_CTLR */
387+
#endif /* CONFIG_MEMCG */
388388

389-
#if !defined(CONFIG_CGROUP_MEM_RES_CTLR) || !defined(CONFIG_DEBUG_VM)
389+
#if !defined(CONFIG_MEMCG) || !defined(CONFIG_DEBUG_VM)
390390
static inline bool
391391
mem_cgroup_bad_page_check(struct page *page)
392392
{
@@ -406,7 +406,7 @@ enum {
406406
};
407407

408408
struct sock;
409-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR_KMEM
409+
#ifdef CONFIG_MEMCG_KMEM
410410
void sock_update_memcg(struct sock *sk);
411411
void sock_release_memcg(struct sock *sk);
412412
#else
@@ -416,6 +416,6 @@ static inline void sock_update_memcg(struct sock *sk)
416416
static inline void sock_release_memcg(struct sock *sk)
417417
{
418418
}
419-
#endif /* CONFIG_CGROUP_MEM_RES_CTLR_KMEM */
419+
#endif /* CONFIG_MEMCG_KMEM */
420420
#endif /* _LINUX_MEMCONTROL_H */
421421

include/linux/mmzone.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ struct zone_reclaim_stat {
201201
struct lruvec {
202202
struct list_head lists[NR_LRU_LISTS];
203203
struct zone_reclaim_stat reclaim_stat;
204-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
204+
#ifdef CONFIG_MEMCG
205205
struct zone *zone;
206206
#endif
207207
};
@@ -671,7 +671,7 @@ typedef struct pglist_data {
671671
int nr_zones;
672672
#ifdef CONFIG_FLAT_NODE_MEM_MAP /* means !SPARSEMEM */
673673
struct page *node_mem_map;
674-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
674+
#ifdef CONFIG_MEMCG
675675
struct page_cgroup *node_page_cgroup;
676676
#endif
677677
#endif
@@ -736,7 +736,7 @@ extern void lruvec_init(struct lruvec *lruvec, struct zone *zone);
736736

737737
static inline struct zone *lruvec_zone(struct lruvec *lruvec)
738738
{
739-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
739+
#ifdef CONFIG_MEMCG
740740
return lruvec->zone;
741741
#else
742742
return container_of(lruvec, struct zone, lruvec);
@@ -1052,7 +1052,7 @@ struct mem_section {
10521052

10531053
/* See declaration of similar field in struct zone */
10541054
unsigned long *pageblock_flags;
1055-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
1055+
#ifdef CONFIG_MEMCG
10561056
/*
10571057
* If !SPARSEMEM, pgdat doesn't have page_cgroup pointer. We use
10581058
* section. (see memcontrol.h/page_cgroup.h about this.)

include/linux/page_cgroup.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ enum {
1212
#ifndef __GENERATING_BOUNDS_H
1313
#include <generated/bounds.h>
1414

15-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
15+
#ifdef CONFIG_MEMCG
1616
#include <linux/bit_spinlock.h>
1717

1818
/*
@@ -82,7 +82,7 @@ static inline void unlock_page_cgroup(struct page_cgroup *pc)
8282
bit_spin_unlock(PCG_LOCK, &pc->flags);
8383
}
8484

85-
#else /* CONFIG_CGROUP_MEM_RES_CTLR */
85+
#else /* CONFIG_MEMCG */
8686
struct page_cgroup;
8787

8888
static inline void __meminit pgdat_page_cgroup_init(struct pglist_data *pgdat)
@@ -102,11 +102,11 @@ static inline void __init page_cgroup_init_flatmem(void)
102102
{
103103
}
104104

105-
#endif /* CONFIG_CGROUP_MEM_RES_CTLR */
105+
#endif /* CONFIG_MEMCG */
106106

107107
#include <linux/swap.h>
108108

109-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
109+
#ifdef CONFIG_MEMCG_SWAP
110110
extern unsigned short swap_cgroup_cmpxchg(swp_entry_t ent,
111111
unsigned short old, unsigned short new);
112112
extern unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id);
@@ -138,7 +138,7 @@ static inline void swap_cgroup_swapoff(int type)
138138
return;
139139
}
140140

141-
#endif /* CONFIG_CGROUP_MEM_RES_CTLR_SWAP */
141+
#endif /* CONFIG_MEMCG_SWAP */
142142

143143
#endif /* !__GENERATING_BOUNDS_H */
144144

include/linux/sched.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ struct task_struct {
15841584
/* bitmask and counter of trace recursion */
15851585
unsigned long trace_recursion;
15861586
#endif /* CONFIG_TRACING */
1587-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR /* memcg uses this to do batch job */
1587+
#ifdef CONFIG_MEMCG /* memcg uses this to do batch job */
15881588
struct memcg_batch_info {
15891589
int do_batch; /* incremented when batch uncharge started */
15901590
struct mem_cgroup *memcg; /* target memcg of uncharge */

include/linux/swap.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,15 @@ static inline void scan_unevictable_unregister_node(struct node *node)
301301

302302
extern int kswapd_run(int nid);
303303
extern void kswapd_stop(int nid);
304-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
304+
#ifdef CONFIG_MEMCG
305305
extern int mem_cgroup_swappiness(struct mem_cgroup *mem);
306306
#else
307307
static inline int mem_cgroup_swappiness(struct mem_cgroup *mem)
308308
{
309309
return vm_swappiness;
310310
}
311311
#endif
312-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR_SWAP
312+
#ifdef CONFIG_MEMCG_SWAP
313313
extern void mem_cgroup_uncharge_swap(swp_entry_t ent);
314314
#else
315315
static inline void mem_cgroup_uncharge_swap(swp_entry_t ent)
@@ -360,7 +360,7 @@ extern int reuse_swap_page(struct page *);
360360
extern int try_to_free_swap(struct page *);
361361
struct backing_dev_info;
362362

363-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
363+
#ifdef CONFIG_MEMCG
364364
extern void
365365
mem_cgroup_uncharge_swapcache(struct page *page, swp_entry_t ent, bool swapout);
366366
#else

include/net/sock.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ struct proto {
913913
#ifdef SOCK_REFCNT_DEBUG
914914
atomic_t socks;
915915
#endif
916-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR_KMEM
916+
#ifdef CONFIG_MEMCG_KMEM
917917
/*
918918
* cgroup specific init/deinit functions. Called once for all
919919
* protocols that implement it, from cgroups populate function.
@@ -994,7 +994,7 @@ inline void sk_refcnt_debug_release(const struct sock *sk)
994994
#define sk_refcnt_debug_release(sk) do { } while (0)
995995
#endif /* SOCK_REFCNT_DEBUG */
996996

997-
#if defined(CONFIG_CGROUP_MEM_RES_CTLR_KMEM) && defined(CONFIG_NET)
997+
#if defined(CONFIG_MEMCG_KMEM) && defined(CONFIG_NET)
998998
extern struct static_key memcg_socket_limit_enabled;
999999
static inline struct cg_proto *parent_cg_proto(struct proto *proto,
10001000
struct cg_proto *cg_proto)

init/Kconfig

+7-7
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ config RESOURCE_COUNTERS
686686
This option enables controller independent resource accounting
687687
infrastructure that works with cgroups.
688688

689-
config CGROUP_MEM_RES_CTLR
689+
config MEMCG
690690
bool "Memory Resource Controller for Control Groups"
691691
depends on RESOURCE_COUNTERS
692692
select MM_OWNER
@@ -709,9 +709,9 @@ config CGROUP_MEM_RES_CTLR
709709
This config option also selects MM_OWNER config option, which
710710
could in turn add some fork/exit overhead.
711711

712-
config CGROUP_MEM_RES_CTLR_SWAP
712+
config MEMCG_SWAP
713713
bool "Memory Resource Controller Swap Extension"
714-
depends on CGROUP_MEM_RES_CTLR && SWAP
714+
depends on MEMCG && SWAP
715715
help
716716
Add swap management feature to memory resource controller. When you
717717
enable this, you can limit mem+swap usage per cgroup. In other words,
@@ -726,9 +726,9 @@ config CGROUP_MEM_RES_CTLR_SWAP
726726
if boot option "swapaccount=0" is set, swap will not be accounted.
727727
Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
728728
size is 4096bytes, 512k per 1Gbytes of swap.
729-
config CGROUP_MEM_RES_CTLR_SWAP_ENABLED
729+
config MEMCG_SWAP_ENABLED
730730
bool "Memory Resource Controller Swap Extension enabled by default"
731-
depends on CGROUP_MEM_RES_CTLR_SWAP
731+
depends on MEMCG_SWAP
732732
default y
733733
help
734734
Memory Resource Controller Swap Extension comes with its price in
@@ -739,9 +739,9 @@ config CGROUP_MEM_RES_CTLR_SWAP_ENABLED
739739
For those who want to have the feature enabled by default should
740740
select this option (if, for some reason, they need to disable it
741741
then swapaccount=0 does the trick).
742-
config CGROUP_MEM_RES_CTLR_KMEM
742+
config MEMCG_KMEM
743743
bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
744-
depends on CGROUP_MEM_RES_CTLR && EXPERIMENTAL
744+
depends on MEMCG && EXPERIMENTAL
745745
default n
746746
help
747747
The Kernel Memory extension for Memory Resource Controller can limit

kernel/fork.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
13061306
#ifdef CONFIG_DEBUG_MUTEXES
13071307
p->blocked_on = NULL; /* not blocked yet */
13081308
#endif
1309-
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
1309+
#ifdef CONFIG_MEMCG
13101310
p->memcg_batch.do_batch = 0;
13111311
p->memcg_batch.memcg = NULL;
13121312
#endif

mm/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ obj-$(CONFIG_FS_XIP) += filemap_xip.o
4949
obj-$(CONFIG_MIGRATION) += migrate.o
5050
obj-$(CONFIG_QUICKLIST) += quicklist.o
5151
obj-$(CONFIG_TRANSPARENT_HUGEPAGE) += huge_memory.o
52-
obj-$(CONFIG_CGROUP_MEM_RES_CTLR) += memcontrol.o page_cgroup.o
52+
obj-$(CONFIG_MEMCG) += memcontrol.o page_cgroup.o
5353
obj-$(CONFIG_CGROUP_HUGETLB) += hugetlb_cgroup.o
5454
obj-$(CONFIG_MEMORY_FAILURE) += memory-failure.o
5555
obj-$(CONFIG_HWPOISON_INJECT) += hwpoison-inject.o

0 commit comments

Comments
 (0)