]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/cifs/cifsfs.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[karo-tx-linux.git] / fs / cifs / cifsfs.c
index fd8805de6a509b9f8f94eb14c8aba913a769833e..1d86fc620e5c2a89e83e1d35dcf49364f289f83d 100644 (file)
@@ -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));