From: Al Viro Date: Tue, 8 Mar 2016 04:20:44 +0000 (-0500) Subject: cifs_get_root(): use lookup_one_len_unlocked() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=85f40482bc175f14f63d78fe482ef1826cf3913d;p=linux-beck.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 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));