diff options
author | Tejun Heo | 2007-09-20 09:05:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2007-10-12 23:51:09 +0200 |
commit | f88123eaf953f13a0c597dde54745d28f81236de (patch) | |
tree | d737f3d4a79055d9d6c8ab5df0c564ea6a89ec8a /fs/sysfs/sysfs.h | |
parent | sysfs: fix comments of sysfs_add/remove_one() (diff) | |
download | kernel-qcow2-linux-f88123eaf953f13a0c597dde54745d28f81236de.tar.gz kernel-qcow2-linux-f88123eaf953f13a0c597dde54745d28f81236de.tar.xz kernel-qcow2-linux-f88123eaf953f13a0c597dde54745d28f81236de.zip |
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>
Diffstat (limited to 'fs/sysfs/sysfs.h')
0 files changed, 0 insertions, 0 deletions