cgroup: open-code cgroup_create_dir()
authorTejun Heo <tj@kernel.org>
Mon, 19 Nov 2012 16:13:36 +0000 (08:13 -0800)
committerTejun Heo <tj@kernel.org>
Mon, 19 Nov 2012 16:13:36 +0000 (08:13 -0800)
commit28fd6f30ac3efd9170ae1ac89f3521d53b5eb83a
tree8f9742385f1e8447c3b66e8f87d7c2fc5ae4441c
parent2243076ad128d0cc196cf6597e6ddcf6bc907676
cgroup: open-code cgroup_create_dir()

The operation order of cgroup creation is about to change and
cgroup_create_dir() is more of a hindrance than a proper abstraction.
Open-code it by moving the parent nlink adjustment next to self nlink
adjustment in cgroup_create_file() and the rest to cgroup_create().

This patch doesn't introduce any behavior change.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
kernel/cgroup.c
This page took 0.027107 seconds and 5 git commands to generate.