Skip to content

Commit cd1c0c9

Browse files
author
Al Viro
committed
debugfs_lookup(): switch to lookup_one_len_unlocked()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent a03ece5 commit cd1c0c9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎fs/debugfs/inode.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,7 @@ struct dentry *debugfs_lookup(const char *name, struct dentry *parent)
270270
if (!parent)
271271
parent = debugfs_mount->mnt_root;
272272

273-
inode_lock(d_inode(parent));
274-
dentry = lookup_one_len(name, parent, strlen(name));
275-
inode_unlock(d_inode(parent));
276-
273+
dentry = lookup_one_len_unlocked(name, parent, strlen(name));
277274
if (IS_ERR(dentry))
278275
return NULL;
279276
if (!d_really_is_positive(dentry)) {

0 commit comments

Comments
 (0)