sysfs: switch to ->s_d_op and ->d_release()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 Jun 2012 00:51:39 +0000 (20:51 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Jul 2012 12:35:06 +0000 (16:35 +0400)
commit469796d10590341c53cff0a2959254eaf5d465de
tree74728e34d43bbcd16600de66df8c453d3a35ee63
parent79714f72d3b964611997de512cb29198c9f2dbbb
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>
fs/sysfs/dir.c
fs/sysfs/mount.c
fs/sysfs/sysfs.h