diff options
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r-- | mm/memcontrol.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 97a45b392f77..bef114258bbd 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -4764,6 +4764,7 @@ static struct cftype mem_cgroup_files[] = { | |||
4764 | .read = mem_cgroup_read, | 4764 | .read = mem_cgroup_read, |
4765 | }, | 4765 | }, |
4766 | #endif | 4766 | #endif |
4767 | { }, /* terminate */ | ||
4767 | }; | 4768 | }; |
4768 | 4769 | ||
4769 | static int alloc_mem_cgroup_per_zone_info(struct mem_cgroup *memcg, int node) | 4770 | static int alloc_mem_cgroup_per_zone_info(struct mem_cgroup *memcg, int node) |
@@ -5041,15 +5042,7 @@ static void mem_cgroup_destroy(struct cgroup *cont) | |||
5041 | static int mem_cgroup_populate(struct cgroup_subsys *ss, | 5042 | static int mem_cgroup_populate(struct cgroup_subsys *ss, |
5042 | struct cgroup *cont) | 5043 | struct cgroup *cont) |
5043 | { | 5044 | { |
5044 | int ret; | 5045 | return register_kmem_files(cont, ss); |
5045 | |||
5046 | ret = cgroup_add_files(cont, ss, mem_cgroup_files, | ||
5047 | ARRAY_SIZE(mem_cgroup_files)); | ||
5048 | |||
5049 | if (!ret) | ||
5050 | ret = register_kmem_files(cont, ss); | ||
5051 | |||
5052 | return ret; | ||
5053 | } | 5046 | } |
5054 | 5047 | ||
5055 | #ifdef CONFIG_MMU | 5048 | #ifdef CONFIG_MMU |
@@ -5639,6 +5632,7 @@ struct cgroup_subsys mem_cgroup_subsys = { | |||
5639 | .can_attach = mem_cgroup_can_attach, | 5632 | .can_attach = mem_cgroup_can_attach, |
5640 | .cancel_attach = mem_cgroup_cancel_attach, | 5633 | .cancel_attach = mem_cgroup_cancel_attach, |
5641 | .attach = mem_cgroup_move_task, | 5634 | .attach = mem_cgroup_move_task, |
5635 | .base_cftypes = mem_cgroup_files, | ||
5642 | .early_init = 0, | 5636 | .early_init = 0, |
5643 | .use_id = 1, | 5637 | .use_id = 1, |
5644 | }; | 5638 | }; |