linux/fs/sysfs
Tejun Heo 5d60418e54 sysfs, kernfs: introduce kernfs_setattr()
Introduce kernfs setattr interface - kernfs_setattr().

sysfs_sd_setattr() is renamed to __kernfs_setattr() and
kernfs_setattr() is a simple wrapper around it with sysfs_mutex
locking.  sysfs_chmod_file() is updated to get an explicit ref on
kobj->sd and then invoke kernfs_setattr() so that it doesn't have to
use internal interface.

This patch doesn't introduce any behavior differences.

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>
2013-11-27 13:57:57 -08:00
..
dir.c sysfs, kernfs: introduce kernfs_rename[_ns]() 2013-11-27 13:57:57 -08:00
file.c sysfs, kernfs: introduce kernfs_setattr() 2013-11-27 13:57:57 -08:00
group.c sysfs, kernfs: introduce kernfs_remove[_by_name[_ns]]() 2013-11-27 13:57:56 -08:00
inode.c sysfs, kernfs: introduce kernfs_setattr() 2013-11-27 13:57:57 -08:00
Kconfig kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Makefile sysfs: merge regular and bin file handling 2013-10-05 17:27:40 -07:00
mount.c sysfs: drop kobj_ns_type handling, take #2 2013-11-27 13:01:03 -08:00
symlink.c sysfs, kernfs: introduce kernfs_rename[_ns]() 2013-11-27 13:57:57 -08:00
sysfs.h sysfs, kernfs: introduce kernfs_setattr() 2013-11-27 13:57:57 -08:00