summaryrefslogtreecommitdiffstats
path: root/samples/kobject
diff options
context:
space:
mode:
authorTejun Heo2013-11-29 23:19:09 +0100
committerGreg Kroah-Hartman2013-11-30 03:41:28 +0100
commitac9bba031001704a2339713cc12148857eccc5e5 (patch)
treec058217a47c51021d97454639ed0f7480c73fe6a /samples/kobject
parentsysfs, kernfs: make sysfs_dirent definition public (diff)
downloadkernel-qcow2-linux-ac9bba031001704a2339713cc12148857eccc5e5.tar.gz
kernel-qcow2-linux-ac9bba031001704a2339713cc12148857eccc5e5.tar.xz
kernel-qcow2-linux-ac9bba031001704a2339713cc12148857eccc5e5.zip
sysfs, kernfs: implement kernfs_ns_enabled()
fs/sysfs/symlink.c::sysfs_delete_link() tests @sd->s_flags for SYSFS_FLAG_NS. Let's add kernfs_ns_enabled() so that sysfs doesn't have to test sysfs_dirent flag directly. This makes things tidier for kernfs proper too. This is purely cosmetic. v2: To avoid possible NULL deref, use noop dummy implementation which always returns false when !CONFIG_SYSFS. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/kobject')
0 files changed, 0 insertions, 0 deletions