Whamcloud - gitweb
Branch HEAD
authortappro <tappro>
Mon, 31 Aug 2009 05:55:03 +0000 (05:55 +0000)
committertappro <tappro>
Mon, 31 Aug 2009 05:55:03 +0000 (05:55 +0000)
b=15390
i=wangdi
i=fanyong

fix assert for quota additional credits case

lustre/mdd/mdd_trans.c

index 95774a2..3ba0bf8 100644 (file)
@@ -169,7 +169,7 @@ static void mdd_txn_init_dto_credits(const struct lu_env *env,
         for (op = 0; op < DTO_NR; op++) {
                 credits = mdd_child_ops(mdd)->dt_credit_get(env, mdd->mdd_child,
                                                             op);
         for (op = 0; op < DTO_NR; op++) {
                 credits = mdd_child_ops(mdd)->dt_credit_get(env, mdd->mdd_child,
                                                             op);
-                LASSERT(credits > 0);
+                LASSERT(credits >= 0);
                 dto_txn_credits[op] = credits;
         }
 }
                 dto_txn_credits[op] = credits;
         }
 }