Skip to content
Snippets Groups Projects
Commit 943e3b15 authored by Johann Lombardi's avatar Johann Lombardi
Browse files

Branch b1_6

b=13904
i=johann
i=tianzy

Quota data should not be stored in a 32-bit variable. Use __u64 instead.
parent 31e7fbea
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment