mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 16:06:16 +07:00
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>
This commit is contained in:
parent
cbe128e348
commit
86f82d5618
@ -472,7 +472,6 @@ struct cgroup_subsys {
|
|||||||
void (*fork)(struct task_struct *task);
|
void (*fork)(struct task_struct *task);
|
||||||
void (*exit)(struct cgroup *cgrp, struct cgroup *old_cgrp,
|
void (*exit)(struct cgroup *cgrp, struct cgroup *old_cgrp,
|
||||||
struct task_struct *task);
|
struct task_struct *task);
|
||||||
int (*populate)(struct cgroup_subsys *ss, struct cgroup *cgrp);
|
|
||||||
void (*post_clone)(struct cgroup *cgrp);
|
void (*post_clone)(struct cgroup *cgrp);
|
||||||
void (*bind)(struct cgroup *root);
|
void (*bind)(struct cgroup *root);
|
||||||
|
|
||||||
|
@ -3842,9 +3842,6 @@ static int cgroup_populate_dir(struct cgroup *cgrp)
|
|||||||
for_each_subsys(cgrp->root, ss) {
|
for_each_subsys(cgrp->root, ss) {
|
||||||
struct cftype_set *set;
|
struct cftype_set *set;
|
||||||
|
|
||||||
if (ss->populate && (err = ss->populate(ss, cgrp)) < 0)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
list_for_each_entry(set, &ss->cftsets, node)
|
list_for_each_entry(set, &ss->cftsets, node)
|
||||||
cgroup_addrm_files(cgrp, ss, set->cfts, true);
|
cgroup_addrm_files(cgrp, ss, set->cfts, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user