aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/dir.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-11-20 19:08:53 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 14:24:54 -0500
commite61ab4ae48fbf477f5b9fcbec9e1b8dc789920d0 (patch)
tree70199a29a97a4f5ba8aea4340bc828da4f550e5d /fs/sysfs/dir.c
parentc099aacd48ee73bd2de7da029e536ed005d72a43 (diff)
sysfs: Implement sysfs_getattr & sysfs_permission
With the implementation of sysfs_getattr and sysfs_permission sysfs becomes able to lazily propogate inode attribute changes from the sysfs_dirents to the vfs inodes. This paves the way for deleting significant chunks of now unnecessary code. While doing this we did not reference sysfs_setattr from sysfs_symlink_inode_operations so I added along with sysfs_getattr and sysfs_permission. Acked-by: Tejun Heo <tj@kernel.org> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/dir.c')
-rw-r--r--fs/sysfs/dir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index 36ee6d817956..e319379d36db 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -800,7 +800,9 @@ static struct dentry * sysfs_lookup(struct inode *dir, struct dentry *dentry,
800 800
801const struct inode_operations sysfs_dir_inode_operations = { 801const struct inode_operations sysfs_dir_inode_operations = {
802 .lookup = sysfs_lookup, 802 .lookup = sysfs_lookup,
803 .permission = sysfs_permission,
803 .setattr = sysfs_setattr, 804 .setattr = sysfs_setattr,
805 .getattr = sysfs_getattr,
804 .setxattr = sysfs_setxattr, 806 .setxattr = sysfs_setxattr,
805}; 807};
806 808