]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/linux/kernfs.h
sysfs, kernfs: introduce kernfs_create_link()
authorTejun Heo <tj@kernel.org>
Sat, 23 Nov 2013 22:21:50 +0000 (17:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Nov 2013 21:57:56 +0000 (13:57 -0800)
commit5d0e26bb59a680a5d97db5b6629941603e8de229
tree221776b29c3cdc947c5e8637856a111d1dc05368
parent879f40d193bb3c6c13930e88e3e9d5d7baf84d19
sysfs, kernfs: introduce kernfs_create_link()

Separate out kernfs symlink interface - kernfs_create_link() - which
takes and returns sysfs_dirents, from sysfs_do_create_link_sd().
sysfs_do_create_link_sd() now just determines the parent and target
sysfs_dirents and invokes the new interface and handles dup warning.

This patch doesn't introduce behavior changes.

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/symlink.c
include/linux/kernfs.h