From 342797a516970a024832e62ecb453b46a152102c Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 28 Apr 2005 18:36:04 +0000 Subject: [PATCH] Branch: b1_4 Fix quota test valid compile warnings. --- lustre/ldiskfs/quotafmt_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: -- 1.8.3.1