]> git.baikalelectronics.ru Git - kernel.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)
commit29cf423f216561e03f56e422b91d94998051b6c5
tree12a1240213d59c061fec60325c7d5ebb1edebcd7
parenta3db51dc7fb874a622d8e4b18bd1b5b8c4fecb0d
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 b80c1c9633ef1a29f38bde6b54c72b7a21112bae and
74533daf1daba06f4c74b54d091e44bc61a71202.

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