From: Al Viro Date: Thu, 8 Mar 2018 16:01:22 +0000 (-0500) Subject: debugfs_lookup(): switch to lookup_one_len_unlocked() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cd1c0c9321999737073dcfc3364e194e02604bce;p=linux.git debugfs_lookup(): switch to lookup_one_len_unlocked() Signed-off-by: Al Viro --- diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 63a998c3f2522..13b01351dd1cb 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)) {