From: adilger Date: Thu, 28 Apr 2005 18:36:04 +0000 (+0000) Subject: Branch: b1_4 X-Git-Tag: v1_7_100~1^25~8^2~183 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=342797a516970a024832e62ecb453b46a152102c;p=fs%2Flustre-release.git Branch: b1_4 Fix quota test valid compile warnings. --- diff --git a/lustre/ldiskfs/quotafmt_test.c b/lustre/ldiskfs/quotafmt_test.c index 2c76acb..b3c9e44 100644 --- a/lustre/ldiskfs/quotafmt_test.c +++ b/lustre/ldiskfs/quotafmt_test.c @@ -267,7 +267,7 @@ static int quotfmt_test_3(struct lustre_quota_info *lqi) if (dquot == NULL) RETURN(-ENOMEM); repeat: - clear_bit(DQ_FAKE_B, dquot->dq_flags); + clear_bit(DQ_FAKE_B, &dquot->dq_flags); /* write a new dquot */ rc = lustre_commit_dquot(dquot); if (rc) { @@ -283,11 +283,11 @@ repeat: CERROR("read dquot failed! (rc:%d)\n", rc); GOTO(out, rc); } - if (!dquot->dq_off || test_bit(DQ_FAKE_B, dquot->dq_flags)) { + if (!dquot->dq_off || test_bit(DQ_FAKE_B, &dquot->dq_flags)) { CERROR("the dquot isn't committed\n"); GOTO(out, rc = -EINVAL); } - + /* remove this dquot */ set_bit(DQ_FAKE_B, &dquot->dq_flags); dquot->dq_dqb.dqb_curspace = 0; @@ -314,7 +314,7 @@ repeat: /* check if this dquot can be write again */ if (++i < 2) goto repeat; - + print_quota_info(lqi); out: