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

debugfs_lookup(): switch to lookup_one_len_unlocked()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 a03ece5f
...@@ -270,10 +270,7 @@ struct dentry *debugfs_lookup(const char *name, struct dentry *parent) ...@@ -270,10 +270,7 @@ struct dentry *debugfs_lookup(const char *name, struct dentry *parent)
if (!parent) if (!parent)
parent = debugfs_mount->mnt_root; parent = debugfs_mount->mnt_root;
inode_lock(d_inode(parent)); dentry = lookup_one_len_unlocked(name, parent, strlen(name));
dentry = lookup_one_len(name, parent, strlen(name));
inode_unlock(d_inode(parent));
if (IS_ERR(dentry)) if (IS_ERR(dentry))
return NULL; return NULL;
if (!d_really_is_positive(dentry)) { if (!d_really_is_positive(dentry)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册