[PATCH 33/34] sysfs, kernfs: implement kernfs_ns_enabled()

2013-11-28 Thread Tejun Heo
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. Signed-off-by: Tejun Heo --- fs/kernfs/dir.c

[PATCH 33/34] sysfs, kernfs: implement kernfs_ns_enabled()

2013-11-28 Thread Tejun Heo
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. Signed-off-by: Tejun Heo t...@kernel.org ---