diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-04-15 01:20:29 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-03 01:47:24 +0200 |
commit | b9e1d435fdf4ae0b925070d44b65d608f2707688 (patch) | |
tree | ec6a82e780daa1bfc0b68277380debf8a8da8c57 /fs/overlayfs/super.c | |
parent | reconnect_one(): use lookup_one_len_unlocked() (diff) | |
download | linux-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.c | 4 |
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) |