summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-04-10 10:16:36 -0700
committerTejun Heo <tj@kernel.org>2012-04-11 09:16:48 -0700
commit86f82d561864e902c70282b6f17cf590c0f34691 (patch)
tree1f4021c8de07899152b00ddce36f09192ee78395
parentcbe128e348e5994516304f94865ff90c40c1c5ae (diff)
cgroup: remove cgroup_subsys->populate()
With memcg converted, cgroup_subsys->populate() doesn't have any user left. Remove it. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
-rw-r--r--include/linux/cgroup.h1
-rw-r--r--kernel/cgroup.c3
2 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 565c8034e6c..d3f5fba2c15 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -472,7 +472,6 @@ struct cgroup_subsys {
void (*fork)(struct task_struct *task);
void (*exit)(struct cgroup *cgrp, struct cgroup *old_cgrp,
struct task_struct *task);
- int (*populate)(struct cgroup_subsys *ss, struct cgroup *cgrp);
void (*post_clone)(struct cgroup *cgrp);
void (*bind)(struct cgroup *root);
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 2905977e0f3..b2f203f25ec 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -3842,9 +3842,6 @@ static int cgroup_populate_dir(struct cgroup *cgrp)
for_each_subsys(cgrp->root, ss) {
struct cftype_set *set;
- if (ss->populate && (err = ss->populate(ss, cgrp)) < 0)
- return err;
-
list_for_each_entry(set, &ss->cftsets, node)
cgroup_addrm_files(cgrp, ss, set->cfts, true);
}