]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: make sysfs_drop_dentry() access inodes using ilookup()
authorTejun Heo <htejun@gmail.com>
Wed, 13 Jun 2007 19:27:21 +0000 (04:27 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:08 +0000 (16:09 -0700)
commitfadc3ba91c80cdf1b24a138c8c4f3b72a36b6192
tree6f9deb74f4facc5e638b71ba8b99ac2baeed9859
parent88d55630d0b95031eabff072d7c0b0a59defe82e
sysfs: make sysfs_drop_dentry() access inodes using ilookup()

sysfs_drop_dentry() used to go through sd->s_dentry and
sd->s_parent->s_dentry to access the inodes.  This is incorrect
because inode can be cached without dentry.

This patch makes sysfs_drop_dentry() access inodes using ilookup() on
sd->s_ino.  This is both correct and simpler.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/inode.c