sysfs: Simplify sysfs_chmod_file semantics
commit4c6974f51a981d14f13e36049d6307d3bcda550e
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 8 Nov 2009 07:27:02 +0000 (7 23:27 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:24:53 +0000 (11 11:24 -0800)
tree608016b1dcdbf094732f06a2688a8af3d4d20d62
parente8f077c8831528e2ec1ea6c8ba090e405fdcd0b7
sysfs: Simplify sysfs_chmod_file semantics

Currently every caller of sysfs_chmod_file happens at either
file creation time to set a non-default mode or in response
to a specific user requested space change in policy.  Making
timestamps of when the chmod happens and notification of
a file changing mode uninteresting.

Remove the unnecessary time stamp and filesystem change
notification, and removes the last of the explicit inotify
and donitfy support from sysfs.

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