From 943e3b15ff507ffad6a42dfc02d48d3bb7365988 Mon Sep 17 00:00:00 2001 From: johann <johann> Date: Fri, 2 May 2008 19:01:34 +0000 Subject: [PATCH] Branch b1_6 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/quota/quota_context.c b/lustre/quota/quota_context.c index 11b7a91562..a0b6bf12f5 100644 --- a/lustre/quota/quota_context.c +++ b/lustre/quota/quota_context.c @@ -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; -- GitLab