summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/super.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-04-15 01:20:29 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-03 01:47:24 +0200
commitb9e1d435fdf4ae0b925070d44b65d608f2707688 (patch)
treeec6a82e780daa1bfc0b68277380debf8a8da8c57 /fs/overlayfs/super.c
parentreconnect_one(): use lookup_one_len_unlocked() (diff)
downloadlinux-b9e1d435fdf4ae0b925070d44b65d608f2707688.tar.xz
linux-b9e1d435fdf4ae0b925070d44b65d608f2707688.zip
ovl_lookup_real(): use lookup_one_len_unlocked()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r--fs/overlayfs/super.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index 29c4d3250725..8784691f0492 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -411,9 +411,7 @@ static inline struct dentry *ovl_lookup_real(struct dentry *dir,
{
struct dentry *dentry;
- inode_lock(dir->d_inode);
- dentry = lookup_one_len(name->name, dir, name->len);
- inode_unlock(dir->d_inode);
+ dentry = lookup_one_len_unlocked(name->name, dir, name->len);
if (IS_ERR(dentry)) {
if (PTR_ERR(dentry) == -ENOENT)