projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
130f9ab
)
cifs_get_root(): use lookup_one_len_unlocked()
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 8 Mar 2016 04:20:44 +0000
(23:20 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 14 Mar 2016 04:16:44 +0000
(
00:16
-0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/cifs/cifsfs.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/cifsfs.c
b/fs/cifs/cifsfs.c
index c48ca13673e37f2eba7c4045f140e6e8b740e499..09b1db2cac310a6c588dc1c8141550ebbf9ca394 100644
(file)
--- a/
fs/cifs/cifsfs.c
+++ b/
fs/cifs/cifsfs.c
@@
-642,9
+642,7
@@
cifs_get_root(struct smb_vol *vol, struct super_block *sb)
while (*s && *s != sep)
s++;
- inode_lock(dir);
- child = lookup_one_len(p, dentry, s - p);
- inode_unlock(dir);
+ child = lookup_one_len_unlocked(p, dentry, s - p);
dput(dentry);
dentry = child;
} while (!IS_ERR(dentry));