Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235481
b: refs/heads/master
c: 25d41d8
h: refs/heads/master
i:
  235479: 26a8439
v: v3
  • Loading branch information
Jan Kara authored and Greg Kroah-Hartman committed Feb 18, 2011
1 parent 218ebd2 commit 2500d0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b38360a284f8acab4ae431b387c05a4e19ff4129
refs/heads/master: 25d41d8455ec1ee7433e146ee94436dc4195f420
11 changes: 7 additions & 4 deletions trunk/fs/debugfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent,
}
EXPORT_SYMBOL_GPL(debugfs_create_symlink);

static void __debugfs_remove(struct dentry *dentry, struct dentry *parent)
static int __debugfs_remove(struct dentry *dentry, struct dentry *parent)
{
int ret = 0;

Expand All @@ -330,6 +330,7 @@ static void __debugfs_remove(struct dentry *dentry, struct dentry *parent)
dput(dentry);
}
}
return ret;
}

/**
Expand All @@ -348,7 +349,8 @@ static void __debugfs_remove(struct dentry *dentry, struct dentry *parent)
void debugfs_remove(struct dentry *dentry)
{
struct dentry *parent;

int ret;

if (!dentry)
return;

Expand All @@ -357,9 +359,10 @@ void debugfs_remove(struct dentry *dentry)
return;

mutex_lock(&parent->d_inode->i_mutex);
__debugfs_remove(dentry, parent);
ret = __debugfs_remove(dentry, parent);
mutex_unlock(&parent->d_inode->i_mutex);
simple_release_fs(&debugfs_mount, &debugfs_mount_count);
if (!ret)
simple_release_fs(&debugfs_mount, &debugfs_mount_count);
}
EXPORT_SYMBOL_GPL(debugfs_remove);

Expand Down

0 comments on commit 2500d0b

Please sign in to comment.