From 97f112b4f0fa9e43240fed8c8a1c77fe1c863925 Mon Sep 17 00:00:00 2001 From: fanyong Date: Wed, 17 Sep 2008 01:49:28 +0000 Subject: [PATCH] Branch b1_6 b=16303 i=nikita i=johann Do not drop reference count for the dentry from VFS when lookup, VFS will do that by itself. --- lustre/llite/statahead.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/llite/statahead.c b/lustre/llite/statahead.c index 19c889e..f6da82a 100644 --- a/lustre/llite/statahead.c +++ b/lustre/llite/statahead.c @@ -1078,7 +1078,8 @@ int do_statahead_enter(struct inode *dir, struct dentry **dentryp, int lookup) &(*dentryp)->d_name); if (result) { LASSERT(result != *dentryp); - dput(*dentryp); + /* BUG 16303: do not drop reference count for + * "*dentryp", VFS will do that by itself. */ *dentryp = result; RETURN(1); } -- 1.8.3.1