commit | f88123eaf953f13a0c597dde54745d28f81236de | [log] [tgz] |
---|---|---|
author | Tejun Heo <htejun@gmail.com> | Thu Sep 20 16:05:10 2007 +0900 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Fri Oct 12 14:51:09 2007 -0700 |
tree | d737f3d4a79055d9d6c8ab5df0c564ea6a89ec8a | |
parent | 181b2e4be1603ce3ccace8322047a548f29f4b20 [diff] |
sysfs: fix sysfs_chmod_file() such that it updates sd->s_mode too sysfs_chmod_file() looked and updated only inode of the target file. Dentry and inode are reclaimable and the update mode data will go away when the inode is reclaimed. This patch makes sysfs_chmod_file() update sd->s_mode too such that the change is permanent. Signed-off-by: Tejun Heo <htejun@gmail.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>