From ec71193663e3305af3cf53f2342b946c56281e30 Mon Sep 17 00:00:00 2001 From: vs Date: Sat, 31 Jan 2009 14:36:51 +0000 Subject: [PATCH] b=17807 i=nikita i=huanghua ll_revalidate_nd: do not return 0 in case of error --- lustre/llite/dcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index d4e4705..31fdff5 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -770,7 +770,7 @@ int ll_revalidate_nd(struct dentry *dentry, struct nameidata *nd) * nd->intent.open.file for error, so we need to return it as lookup's result * instead */ if (IS_ERR(filp)) - rc = 0; + rc = PTR_ERR(filp); #endif } #else -- 1.8.3.1