case QUOTA_DQREL:
/* The usage in administrative file might be incorrect before
* recovery done */
- if (*usage - qdata->qd_count < 0)
+ if (*usage < qdata->qd_count)
*usage = 0;
else
*usage -= qdata->qd_count;
dqblk->dqb_curspace = 0;
rc = mds_get_space(obd, oqctl);
- /*
- * Querying of curinodes and/or curspace may have failed, administrative
- * quota data are likely to be better approximation to the real usage in
- * this case.
- */
- if (!(dqblk->dqb_valid & QIF_INODES) && dquot->dq_dqb.dqb_curinodes > 0)
- dqblk->dqb_curinodes = dquot->dq_dqb.dqb_curinodes;
-
- if (!(dqblk->dqb_valid & QIF_SPACE) && dquot->dq_dqb.dqb_curspace > 0)
- dqblk->dqb_curspace = dquot->dq_dqb.dqb_curspace;
-
RETURN(rc);
out: