Li Zefan
f41c593454
kernfs: fix kernfs_node_from_dentry()
Currently kernfs_node_from_dentry() returns NULL for root dentry,
because root_dentry->d_op == NULL.
Due to this bug cgroupstats_build() returns -EINVAL for root cgroup.
# mount -t cgroup -o cpuacct /cgroup
# Documentation/accounting/getdelays -C /cgroup
fatal reply error, errno -22
With this fix:
# Documentation/accounting/getdelays -C /cgroup
sleeping 305, blocked 0, running 1, stopped 0, uninterruptible 1
Signed-off-by: Li Zefan <lizefan@huawei.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-14 14:31:37 -08:00
..
2014-02-14 14:31:37 -08:00
2014-02-07 15:52:48 -08:00
2013-12-11 17:39:20 -08:00
2014-02-07 16:08:57 -08:00
2014-02-14 14:31:37 -08:00
2013-11-27 13:28:24 -08:00
2014-02-14 14:31:37 -08:00
2014-02-07 15:42:40 -08:00