• Tejun Heo's avatar
    cgroup: open-code cgroup_create_dir() · 28fd6f30
    Tejun Heo authored
    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: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarLi Zefan <lizefan@huawei.com>
    28fd6f30
cgroup.c 145 KB