diff options
author | Tejun Heo <htejun@gmail.com> | 2007-06-13 14:45:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-11 19:09:06 -0400 |
commit | dbde0fcf9f8f6d477af3c32d9979e789ee680cde (patch) | |
tree | 12a1240213d59c061fec60325c7d5ebb1edebcd7 /fs/sysfs/sysfs.h | |
parent | 198a2a847015805c6f57d8cc732bdaaccb494007 (diff) |
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>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r-- | fs/sysfs/sysfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 9fa77d648aa5..fc6aa863b947 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
@@ -76,7 +76,7 @@ extern struct sysfs_dirent *sysfs_find(struct sysfs_dirent *dir, const char * na | |||
76 | extern int sysfs_create_subdir(struct kobject *, const char *, struct dentry **); | 76 | extern int sysfs_create_subdir(struct kobject *, const char *, struct dentry **); |
77 | extern void sysfs_remove_subdir(struct dentry *); | 77 | extern void sysfs_remove_subdir(struct dentry *); |
78 | 78 | ||
79 | extern void sysfs_drop_dentry(struct sysfs_dirent *sd, struct dentry *parent); | 79 | extern void sysfs_drop_dentry(struct sysfs_dirent *sd); |
80 | extern int sysfs_setattr(struct dentry *dentry, struct iattr *iattr); | 80 | extern int sysfs_setattr(struct dentry *dentry, struct iattr *iattr); |
81 | 81 | ||
82 | extern spinlock_t sysfs_lock; | 82 | extern spinlock_t sysfs_lock; |