Commit 779b8391 authored by Al Viro's avatar Al Viro

kernfs: use lookup_one_len_unlocked()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent b9680917
...@@ -120,9 +120,8 @@ struct dentry *kernfs_node_dentry(struct kernfs_node *kn, ...@@ -120,9 +120,8 @@ struct dentry *kernfs_node_dentry(struct kernfs_node *kn,
kntmp = find_next_ancestor(kn, knparent); kntmp = find_next_ancestor(kn, knparent);
if (WARN_ON(!kntmp)) if (WARN_ON(!kntmp))
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
mutex_lock(&d_inode(dentry)->i_mutex); dtmp = lookup_one_len_unlocked(kntmp->name, dentry,
dtmp = lookup_one_len(kntmp->name, dentry, strlen(kntmp->name)); strlen(kntmp->name));
mutex_unlock(&d_inode(dentry)->i_mutex);
dput(dentry); dput(dentry);
if (IS_ERR(dtmp)) if (IS_ERR(dtmp))
return dtmp; return dtmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment