author | Tejun Heo <tj@kernel.org> | |
Mon, 19 Nov 2012 16:13:36 +0000 (08:13 -0800) | ||
committer | Tejun Heo <tj@kernel.org> | |
Mon, 19 Nov 2012 16:13:36 +0000 (08:13 -0800) | ||
commit | 28fd6f30ac3efd9170ae1ac89f3521d53b5eb83a | |
tree | 8f9742385f1e8447c3b66e8f87d7c2fc5ae4441c | tree | snapshot (tar.xz tar.gz zip) |
parent | 2243076ad128d0cc196cf6597e6ddcf6bc907676 | commit | diff |
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>
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 | diff | blob | history |