summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-03-08 17:01:22 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2018-03-29 21:07:47 +0200
commitcd1c0c9321999737073dcfc3364e194e02604bce (patch)
treeb80a3c1592a186f8a2137e4c28732415d189b535 /fs
parentfold lookup_real() into __lookup_hash() (diff)
downloadlinux-cd1c0c9321999737073dcfc3364e194e02604bce.tar.xz
linux-cd1c0c9321999737073dcfc3364e194e02604bce.zip
debugfs_lookup(): switch to lookup_one_len_unlocked()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/debugfs/inode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 63a998c3f252..13b01351dd1c 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -270,10 +270,7 @@ struct dentry *debugfs_lookup(const char *name, struct dentry *parent)
if (!parent)
parent = debugfs_mount->mnt_root;
- inode_lock(d_inode(parent));
- dentry = lookup_one_len(name, parent, strlen(name));
- inode_unlock(d_inode(parent));
-
+ dentry = lookup_one_len_unlocked(name, parent, strlen(name));
if (IS_ERR(dentry))
return NULL;
if (!d_really_is_positive(dentry)) {