aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/file.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-06-13 15:27:22 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-11 19:09:08 -0400
commitf0b0af4792d751106e2003f96af76fa95e10c68d (patch)
tree09483c5b34009cc815897d885f310d0704d0c396 /fs/sysfs/file.c
parent380e6fbb729a55b73d5d8409551474884e0d93fc (diff)
sysfs: implement sysfs_find_dirent() and sysfs_get_dirent()
Implement sysfs_find_dirent() and sysfs_get_dirent(). sysfs_dirent_exist() is replaced by sysfs_find_dirent(). These will be used to make directory entries reclamiable. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/file.c')
-rw-r--r--fs/sysfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index a84b734f7b29..e448b88e313e 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -421,7 +421,7 @@ int sysfs_add_file(struct dentry * dir, const struct attribute * attr, int type)
421 421
422 mutex_lock(&dir->d_inode->i_mutex); 422 mutex_lock(&dir->d_inode->i_mutex);
423 423
424 if (sysfs_dirent_exist(parent_sd, attr->name)) { 424 if (sysfs_find_dirent(parent_sd, attr->name)) {
425 error = -EEXIST; 425 error = -EEXIST;
426 goto out_unlock; 426 goto out_unlock;
427 } 427 }