]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kernfs: implement kernfs_node_from_dentry(), kernfs_root_from_sb() and kernfs_rename()
authorTejun Heo <tj@kernel.org>
Mon, 3 Feb 2014 19:09:15 +0000 (14:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Feb 2014 00:00:41 +0000 (16:00 -0800)
commit0c23b2259a4850494e2c53e864ea840597c6cdd3
treef4d061ea433e443edd43d1f0a186e06aeb2ed95e
parent2536390da0d300b2734c721235c082498879841d
kernfs: implement kernfs_node_from_dentry(), kernfs_root_from_sb() and kernfs_rename()

Implement helpers to determine node from dentry and root from
super_block.  Also add a kernfs_rename_ns() wrapper which assumes NULL
namespace.  These generally make sense and will be used by cgroup.

v2: Some dummy implementations for !CONFIG_SYSFS was missing.  Fixed.
    Reported by kbuild test robot.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/dir.c
fs/kernfs/mount.c
include/linux/kernfs.h