diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-04-11 08:42:55 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-02 19:47:21 -0400 |
commit | 779b839133d7ab23229be7e601cabab7678ceab1 (patch) | |
tree | c57fc5771498d9b665f30a75f7e86bbd9a4a4153 /fs/kernfs | |
parent | b96809173e94ea2fa8c19c2e40e8545a1821bf57 (diff) |
kernfs: use lookup_one_len_unlocked()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/kernfs')
-rw-r--r-- | fs/kernfs/mount.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/kernfs/mount.c b/fs/kernfs/mount.c index f73541fbe7af..b5b5f079a7f7 100644 --- a/fs/kernfs/mount.c +++ b/fs/kernfs/mount.c | |||
@@ -120,9 +120,8 @@ struct dentry *kernfs_node_dentry(struct kernfs_node *kn, | |||
120 | kntmp = find_next_ancestor(kn, knparent); | 120 | kntmp = find_next_ancestor(kn, knparent); |
121 | if (WARN_ON(!kntmp)) | 121 | if (WARN_ON(!kntmp)) |
122 | return ERR_PTR(-EINVAL); | 122 | return ERR_PTR(-EINVAL); |
123 | mutex_lock(&d_inode(dentry)->i_mutex); | 123 | dtmp = lookup_one_len_unlocked(kntmp->name, dentry, |
124 | dtmp = lookup_one_len(kntmp->name, dentry, strlen(kntmp->name)); | 124 | strlen(kntmp->name)); |
125 | mutex_unlock(&d_inode(dentry)->i_mutex); | ||
126 | dput(dentry); | 125 | dput(dentry); |
127 | if (IS_ERR(dtmp)) | 126 | if (IS_ERR(dtmp)) |
128 | return dtmp; | 127 | return dtmp; |