Whamcloud - gitweb
fix previous wrong assertion.
authorniu <niu>
Wed, 9 Nov 2005 09:49:27 +0000 (09:49 +0000)
committerniu <niu>
Wed, 9 Nov 2005 09:49:27 +0000 (09:49 +0000)
b: 6027

lustre/osc/osc_request.c

index 898c7c0..db8b42d 100644 (file)
@@ -929,7 +929,7 @@ static int osc_brw_fini_request(struct ptlrpc_request *req, struct obdo *oa,
         if (rc < 0 && rc != -EDQUOT)
                 RETURN(rc);
 
-        LASSERTF(!rc || rc == -EDQUOT, "rc = %d\n", rc);
+        LASSERTF(req->rq_repmsg != NULL, "rc = %d\n", rc);
         body = lustre_swab_repbuf(req, 0, sizeof(*body), lustre_swab_ost_body);
         if (body == NULL) {
                 CERROR ("Can't unpack body\n");