summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-03-08 05:20:44 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2016-03-14 05:16:44 +0100
commit85f40482bc175f14f63d78fe482ef1826cf3913d (patch)
treec0fc39795591d64525812332db8b95addb9bb43f /fs/cifs
parentnfs_lookup: don't bother with d_instantiate(dentry, NULL) (diff)
downloadlinux-85f40482bc175f14f63d78fe482ef1826cf3913d.tar.xz
linux-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')
-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));