cgroup: remove cgroup_add_file[s]()
No controller is using cgroup_add_files[s](). Unexport them, and convert cgroup_add_files() to handle NULL entry terminated array instead of taking count explicitly and continue creation on failure for internal use. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizf@cn.fujitsu.com>
This commit is contained in:
@@ -404,22 +404,6 @@ struct cgroup_scanner {
|
||||
void *data;
|
||||
};
|
||||
|
||||
/*
|
||||
* Add a new file to the given cgroup directory. Should only be
|
||||
* called by subsystems from within a populate() method
|
||||
*/
|
||||
int cgroup_add_file(struct cgroup *cgrp, struct cgroup_subsys *subsys,
|
||||
const struct cftype *cft);
|
||||
|
||||
/*
|
||||
* Add a set of new files to the given cgroup directory. Should
|
||||
* only be called by subsystems from within a populate() method
|
||||
*/
|
||||
int cgroup_add_files(struct cgroup *cgrp,
|
||||
struct cgroup_subsys *subsys,
|
||||
const struct cftype cft[],
|
||||
int count);
|
||||
|
||||
int cgroup_add_cftypes(struct cgroup_subsys *ss, const struct cftype *cfts);
|
||||
|
||||
int cgroup_is_removed(const struct cgroup *cgrp);
|
||||
|
Reference in New Issue
Block a user