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
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
---
2 matches
Mail list logo