sysfs, kernfs: introduce kernfs_rename[_ns]()
authorTejun Heo <tj@kernel.org>
Sat, 23 Nov 2013 22:21:51 +0000 (17:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Nov 2013 21:57:57 +0000 (13:57 -0800)
commit890ece160c6465b49c42975d529c3481d89da8f5
tree77cc4d36a9d32d0055a752cae5e3a95806dc87d7
parent5d0e26bb59a680a5d97db5b6629941603e8de229
sysfs, kernfs: introduce kernfs_rename[_ns]()

Introduce kernfs rename interface, krenfs_rename[_ns]().

This is just rename of sysfs_rename().  No functional changes.
Function comment is added to kernfs_rename_ns() and @new_parent_sd is
renamed to @new_parent for consistency with other kernfs interfaces.

v2: Dummy implementation for !CONFIG_SYSFS updated to return -ENOSYS.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/sysfs/dir.c
fs/sysfs/symlink.c
fs/sysfs/sysfs.h
include/linux/kernfs.h