Whamcloud - gitweb
Branch b_release_1_6_5
authorjohann <johann>
Fri, 2 May 2008 18:45:35 +0000 (18:45 +0000)
committerjohann <johann>
Fri, 2 May 2008 18:45:35 +0000 (18:45 +0000)
b=13904
i=johann
i=tianzy

Quota data should not be stored in a 32-bit variable. Use __u64 instead.

lustre/quota/quota_context.c

index 11b7a91..a0b6bf1 100644 (file)
@@ -524,7 +524,7 @@ dqacq_completion(struct obd_device *obd, struct lustre_quota_ctxt *qctxt,
 
         /* update local operational quota file */
         if (rc == 0) {
-                __u32 count = QUSG(qdata->qd_count, QDATA_IS_BLK(qdata));
+                __u64 count = QUSG(qdata->qd_count, QDATA_IS_BLK(qdata));
                 struct obd_quotactl *qctl;
                 __u64 *hardlimit;
 
@@ -559,7 +559,7 @@ dqacq_completion(struct obd_device *obd, struct lustre_quota_ctxt *qctxt,
                         break;
                 case QUOTA_DQREL:
                         LASSERTF(count < *hardlimit,
-                                 "count: %d, hardlimit: "LPU64".\n",
+                                 "count: "LPU64", hardlimit: "LPU64".\n",
                                  count, *hardlimit);
                         *hardlimit -= count;
                         break;