From cb08306e1397ae72c6840ffd4f22d0b4aaf807b2 Mon Sep 17 00:00:00 2001 From: green Date: Tue, 12 Apr 2005 08:30:00 +0000 Subject: [PATCH] b=6141 Sigh, more DQ_* conversion to DQ_*_B and bitops. --- lustre/ldiskfs/quotafmt_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/ldiskfs/quotafmt_test.c b/lustre/ldiskfs/quotafmt_test.c index 0c33aa1..2c76acb 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: - dquot->dq_flags &= ~DQ_FAKE; + clear_bit(DQ_FAKE_B, dquot->dq_flags); /* write a new dquot */ rc = lustre_commit_dquot(dquot); if (rc) { @@ -283,7 +283,7 @@ repeat: CERROR("read dquot failed! (rc:%d)\n", rc); GOTO(out, rc); } - if (!dquot->dq_off || dquot->dq_flags & DQ_FAKE) { + if (!dquot->dq_off || test_bit(DQ_FAKE_B, dquot->dq_flags)) { CERROR("the dquot isn't committed\n"); GOTO(out, rc = -EINVAL); } -- 1.8.3.1