mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
cifs_get_root(): use lookup_one_len_unlocked()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
130f9ab75d
commit
85f40482bc
1 changed files with 1 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue