Skip to content

Commit

Permalink
cgroup: remove cgroup_subsys->populate()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tejun Heo committed Apr 11, 2012
1 parent cbe128e commit 86f82d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion include/linux/cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
3 changes: 0 additions & 3 deletions kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 86f82d5

Please sign in to comment.