Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85f40482 authored by Al Viro's avatar Al Viro
Browse files

cifs_get_root(): use lookup_one_len_unlocked()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 130f9ab7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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));