Whamcloud - gitweb
b=17807
authorvs <vs>
Sat, 31 Jan 2009 14:36:51 +0000 (14:36 +0000)
committervs <vs>
Sat, 31 Jan 2009 14:36:51 +0000 (14:36 +0000)
i=nikita
i=huanghua

ll_revalidate_nd: do not return 0 in case of error

lustre/llite/dcache.c

index d4e4705..31fdff5 100644 (file)
@@ -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))
  * 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
 #endif
                         }
 #else