sysfs: In sysfs_chmod_file lazily propagate the mode change.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 21 Nov 2009 00:08:54 +0000 (16:08 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:24:54 +0000 (11:24 -0800)
commit06fc0d66f7ed3a3b08e8fcf8c325ecf0b8f93fea
treea599fc1cabf3564745ac03bc3e70c7211dc8081e
parente61ab4ae48fbf477f5b9fcbec9e1b8dc789920d0
sysfs: In sysfs_chmod_file lazily propagate the mode change.

Now that sysfs_getattr and sysfs_permission refresh the vfs
inode there is no need to immediatly push the mode change
into the vfs cache.  Reducing the amount of work needed and
simplifying the locking.

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>
fs/sysfs/file.c