Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1380446 > unrolled thread

[PATCH 08/15] ovl_lookup_real(): use lookup_one_len_unlocked()

Started byAl Viro <viro@ZenIV.linux.org.uk>
First post2016-04-16 03:00 +0200
Last post2016-04-16 03:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 08/15] ovl_lookup_real(): use lookup_one_len_unlocked() Al Viro <viro@ZenIV.linux.org.uk> - 2016-04-16 03:00 +0200

#1380446 — [PATCH 08/15] ovl_lookup_real(): use lookup_one_len_unlocked()

FromAl Viro <viro@ZenIV.linux.org.uk>
Date2016-04-16 03:00 +0200
Subject[PATCH 08/15] ovl_lookup_real(): use lookup_one_len_unlocked()
Message-ID<romKD-3oC-15@gated-at.bofh.it>
From: Al Viro <viro@zeniv.linux.org.uk>

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 fs/overlayfs/super.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index 14cab38..4c26225 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -378,9 +378,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)
-- 
2.8.0.rc3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web