提交 acc29fb8 编写于 作者: A Al Viro

debugfs: ->d_parent is never NULL or negative

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 bf130914
...@@ -621,9 +621,6 @@ void debugfs_remove(struct dentry *dentry) ...@@ -621,9 +621,6 @@ void debugfs_remove(struct dentry *dentry)
return; return;
parent = dentry->d_parent; parent = dentry->d_parent;
if (!parent || d_really_is_negative(parent))
return;
inode_lock(d_inode(parent)); inode_lock(d_inode(parent));
ret = __debugfs_remove(dentry, parent); ret = __debugfs_remove(dentry, parent);
inode_unlock(d_inode(parent)); inode_unlock(d_inode(parent));
...@@ -654,10 +651,6 @@ void debugfs_remove_recursive(struct dentry *dentry) ...@@ -654,10 +651,6 @@ void debugfs_remove_recursive(struct dentry *dentry)
if (IS_ERR_OR_NULL(dentry)) if (IS_ERR_OR_NULL(dentry))
return; return;
parent = dentry->d_parent;
if (!parent || d_really_is_negative(parent))
return;
parent = dentry; parent = dentry;
down: down:
inode_lock(d_inode(parent)); inode_lock(d_inode(parent));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册