projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b968091
)
kernfs: use lookup_one_len_unlocked()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 11 Apr 2016 12:42:55 +0000
(08:42 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 2 May 2016 23:47:21 +0000
(19:47 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/kernfs/mount.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/kernfs/mount.c
b/fs/kernfs/mount.c
index f73541fbe7afadaee17dcb038f7be18c21b4d18f..b5b5f079a7f751c0956abe13e80e38cf18178c09 100644
(file)
--- 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;