From: Al Viro Date: Tue, 8 Mar 2016 04:20:44 +0000 (-0500) Subject: cifs_get_root(): use lookup_one_len_unlocked() X-Git-Tag: v4.6-rc1~85^2^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85f40482bc175f14f63d78fe482ef1826cf3913d;p=thirdparty%2Fkernel%2Flinux.git cifs_get_root(): use lookup_one_len_unlocked() Signed-off-by: Al Viro --- diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index c48ca13673e37..09b1db2cac310 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));