From: vs Date: Sat, 31 Jan 2009 14:36:51 +0000 (+0000) Subject: b=17807 X-Git-Tag: v1_9_160~58 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=ec71193663e3305af3cf53f2342b946c56281e30 b=17807 i=nikita i=huanghua ll_revalidate_nd: do not return 0 in case of error --- 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