summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-04-11 12:42:55 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-02 23:47:21 (GMT)
commit779b839133d7ab23229be7e601cabab7678ceab1 (patch)
treec57fc5771498d9b665f30a75f7e86bbd9a4a4153
parentb96809173e94ea2fa8c19c2e40e8545a1821bf57 (diff)
downloadlinux-779b839133d7ab23229be7e601cabab7678ceab1.tar.xz
kernfs: use lookup_one_len_unlocked()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/kernfs/mount.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/kernfs/mount.c b/fs/kernfs/mount.c
index f73541f..b5b5f07 100644
--- a/fs/kernfs/mount.c
+++ b/fs/kernfs/mount.c
@@ -120,9 +120,8 @@ struct dentry *kernfs_node_dentry(struct kernfs_node *kn,
kntmp = find_next_ancestor(kn, knparent);
if (WARN_ON(!kntmp))
return ERR_PTR(-EINVAL);
- mutex_lock(&d_inode(dentry)->i_mutex);
- dtmp = lookup_one_len(kntmp->name, dentry, strlen(kntmp->name));
- mutex_unlock(&d_inode(dentry)->i_mutex);
+ dtmp = lookup_one_len_unlocked(kntmp->name, dentry,
+ strlen(kntmp->name));
dput(dentry);
if (IS_ERR(dtmp))
return dtmp;