cgroup: initialize cgrp->dentry before css_alloc()
authorLi Zefan <lizefan@huawei.com>
Thu, 24 Jan 2013 06:30:22 +0000 (14:30 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 24 Jan 2013 20:05:17 +0000 (12:05 -0800)
commitfe1c06ca7523baa668c1eaf1e1016fa64753c32e
tree25a86fc2be7a9c155bb490332696b4228964207d
parentb5d646f5d5a135064232ff3a140a47a5b84bc911
cgroup: initialize cgrp->dentry before css_alloc()

With this change, we're guaranteed that cgroup_path() won't see NULL
cgrp->dentry, and thus we can remove the NULL check in it.

(Well, it's not strictly true, because dummptop.dentry is always NULL
 but we already handle that separately.)

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