linux-stable/fs/sysfs
Tejun Heo ac9bba0310 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>
2013-11-29 18:41:28 -08:00
..
dir.c sysfs, kernfs: introduce sysfs_root_sd 2013-11-29 18:09:27 -08:00
file.c sysfs, kernfs: move file core code to fs/kernfs/file.c 2013-11-29 18:08:39 -08:00
group.c sysfs, kernfs: introduce kernfs[_find_and]_get() and kernfs_put() 2013-11-29 17:55:10 -08:00
Kconfig kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Makefile sysfs, kernfs: move inode code to fs/kernfs/inode.c 2013-11-29 17:55:10 -08:00
mount.c sysfs, kernfs: move mount core code to fs/kernfs/mount.c 2013-11-29 18:16:08 -08:00
symlink.c sysfs, kernfs: implement kernfs_ns_enabled() 2013-11-29 18:41:28 -08:00
sysfs.h sysfs, kernfs: move mount core code to fs/kernfs/mount.c 2013-11-29 18:16:08 -08:00