Re: [PATCH v2 1/6] cgroup: initialize cgrp->dentry before css_alloc()

2013-01-24 Thread Tejun Heo
On Thu, Jan 24, 2013 at 02:30:22PM +0800, Li Zefan wrote: > 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 true, because dummptop.dentry is always NULL) > > Signed-off-by: Li Zefan Appled 1-6

[PATCH v2 1/6] cgroup: initialize cgrp->dentry before css_alloc()

2013-01-23 Thread Li Zefan
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 true, because dummptop.dentry is always NULL) Signed-off-by: Li Zefan --- kernel/cgroup.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-)