diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-07 23:20:44 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-14 00:16:44 -0400 |
commit | 85f40482bc175f14f63d78fe482ef1826cf3913d (patch) | |
tree | c0fc39795591d64525812332db8b95addb9bb43f | |
parent | 130f9ab75dc3afdb96d49334bd941f2e6faf39a1 (diff) |
cifs_get_root(): use lookup_one_len_unlocked()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/cifs/cifsfs.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) | |||
642 | while (*s && *s != sep) | 642 | while (*s && *s != sep) |
643 | s++; | 643 | s++; |
644 | 644 | ||
645 | inode_lock(dir); | 645 | child = lookup_one_len_unlocked(p, dentry, s - p); |
646 | child = lookup_one_len(p, dentry, s - p); | ||
647 | inode_unlock(dir); | ||
648 | dput(dentry); | 646 | dput(dentry); |
649 | dentry = child; | 647 | dentry = child; |
650 | } while (!IS_ERR(dentry)); | 648 | } while (!IS_ERR(dentry)); |