]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sysfs: reimplement sysfs_drop_dentry()
authorTejun Heo <htejun@gmail.com>
Wed, 13 Jun 2007 18:45:16 +0000 (03:45 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:09:06 +0000 (16:09 -0700)
commitdbde0fcf9f8f6d477af3c32d9979e789ee680cde
tree12a1240213d59c061fec60325c7d5ebb1edebcd7
parent198a2a847015805c6f57d8cc732bdaaccb494007
sysfs: reimplement sysfs_drop_dentry()

This patch reimplements sysfs_drop_dentry() such that remove_dir() can
use it to drop dentry instead of using a separate mechanism.  With
this change, making directories reclaimable is much easier.

This patch used to contain fixes for two race conditions around
sd->s_dentry but that part has been separated out and included into
mainline early as commit 6aa054aadfea613a437ad0b15d38eca2b963fc0a and
dd14cbc994709a1c5a64ed3621f583c49a27e521.

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