]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cgroup: introduce cgroup_init/exit_cftypes()
authorTejun Heo <tj@kernel.org>
Tue, 11 Feb 2014 16:52:48 +0000 (11:52 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 11 Feb 2014 16:52:48 +0000 (11:52 -0500)
commit2da440a26ce4743bd3e71ba964ba3f983d09bba5
tree3a8abc5740529ac5ba918fb464622f43beb6a533
parent5f46990787e2721b4db190ddc8af6fdbe8f010d7
cgroup: introduce cgroup_init/exit_cftypes()

Factor out cft->ss initialization into cgroup_init_cftypes() from
cgroup_add_cftypes() and add cft->ss clearing to cgroup_rm_cftypes()
through cgroup_exit_cftypes().

This doesn't make any meaningful difference now but the two new
functions will be expanded during kernfs transition.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
kernel/cgroup.c