mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 10:34:24 +08:00
kernfs: use lookup_one_len_unlocked()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
b96809173e
commit
779b839133
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user