summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-03-07 23:20:44 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2016-03-14 00:16:44 -0400
commit85f40482bc175f14f63d78fe482ef1826cf3913d (patch)
treec0fc39795591d64525812332db8b95addb9bb43f /fs/cifs/cifsfs.c
parent130f9ab75dc3afdb96d49334bd941f2e6faf39a1 (diff)
downloadlinux-stable-85f40482bc175f14f63d78fe482ef1826cf3913d.tar.gz
linux-stable-85f40482bc175f14f63d78fe482ef1826cf3913d.tar.bz2
linux-stable-85f40482bc175f14f63d78fe482ef1826cf3913d.zip
cifs_get_root(): use lookup_one_len_unlocked()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index c48ca13673e3..09b1db2cac31 100644
--- 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));