diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-06-07 20:51:39 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-14 16:35:06 +0400 |
commit | 469796d10590341c53cff0a2959254eaf5d465de (patch) | |
tree | 74728e34d43bbcd16600de66df8c453d3a35ee63 /fs/sysfs/mount.c | |
parent | 79714f72d3b964611997de512cb29198c9f2dbbb (diff) | |
download | op-kernel-dev-469796d10590341c53cff0a2959254eaf5d465de.zip op-kernel-dev-469796d10590341c53cff0a2959254eaf5d465de.tar.gz |
sysfs: switch to ->s_d_op and ->d_release()
a) ->d_iput() is wrong here - what we do to inode is completely usual, it's
dentry->d_fsdata that we want to drop. Just use ->d_release().
b) switch to ->s_d_op - no need to play with d_set_d_op()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/sysfs/mount.c')
-rw-r--r-- | fs/sysfs/mount.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 52c3bdb6..c15a7a3 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c @@ -68,6 +68,7 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent) } root->d_fsdata = &sysfs_root; sb->s_root = root; + sb->s_d_op = &sysfs_dentry_ops; return 0; } |