]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: factor out cgroup_create() out of cgroup_mkdir()
authorTejun Heo <tj@kernel.org>
Thu, 3 Mar 2016 14:57:58 +0000 (09:57 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 3 Mar 2016 14:57:58 +0000 (09:57 -0500)
commit2ec78e8a2642ec7853086fd7836151ae749fef83
tree2d1097bde3f33a9d77bdfbcaf6637308f90ba464
parentc8cd7fd8390989d63ed656af0230972be893fb66
cgroup: factor out cgroup_create() out of cgroup_mkdir()

We're in the process of refactoring cgroup and css management paths to
separate them out to eventually allow cgroups which aren't visible
through cgroup fs.  This patch factors out cgroup_create() out of
cgroup_mkdir().  cgroup_create() contains all internal object creation
and initialization.  cgroup_mkdir() uses cgroup_create() to create the
internal cgroup and adds interface directory and file creation.

This patch doesn't cause any behavior differences.

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