Lines Matching refs:qtrx
191 struct xfs_dqtrx *qtrx; in xfs_trans_mod_dquot() local
195 qtrx = NULL; in xfs_trans_mod_dquot()
206 qtrx = xfs_trans_get_dqtrx(tp, dqp); in xfs_trans_mod_dquot()
207 ASSERT(qtrx); in xfs_trans_mod_dquot()
208 if (qtrx->qt_dquot == NULL) in xfs_trans_mod_dquot()
209 qtrx->qt_dquot = dqp; in xfs_trans_mod_dquot()
211 trace_xfs_trans_mod_dquot_before(qtrx); in xfs_trans_mod_dquot()
217 qtrx->qt_blk_res += delta; in xfs_trans_mod_dquot()
222 qtrx->qt_ino_res += delta; in xfs_trans_mod_dquot()
227 qtrx->qt_bcount_delta += delta; in xfs_trans_mod_dquot()
231 qtrx->qt_delbcnt_delta += delta; in xfs_trans_mod_dquot()
236 if (qtrx->qt_ino_res && delta > 0) { in xfs_trans_mod_dquot()
237 qtrx->qt_ino_res_used += delta; in xfs_trans_mod_dquot()
238 ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used); in xfs_trans_mod_dquot()
240 qtrx->qt_icount_delta += delta; in xfs_trans_mod_dquot()
245 qtrx->qt_rtblk_res += delta; in xfs_trans_mod_dquot()
250 if (qtrx->qt_rtblk_res && delta > 0) { in xfs_trans_mod_dquot()
251 qtrx->qt_rtblk_res_used += delta; in xfs_trans_mod_dquot()
252 ASSERT(qtrx->qt_rtblk_res >= qtrx->qt_rtblk_res_used); in xfs_trans_mod_dquot()
254 qtrx->qt_rtbcount_delta += delta; in xfs_trans_mod_dquot()
258 qtrx->qt_delrtb_delta += delta; in xfs_trans_mod_dquot()
265 trace_xfs_trans_mod_dquot_after(qtrx); in xfs_trans_mod_dquot()
338 struct xfs_dqtrx *qtrx, *qa; in xfs_trans_apply_dquot_deltas() local
359 qtrx = &qa[i]; in xfs_trans_apply_dquot_deltas()
364 if ((dqp = qtrx->qt_dquot) == NULL) in xfs_trans_apply_dquot_deltas()
386 totalbdelta = qtrx->qt_bcount_delta + in xfs_trans_apply_dquot_deltas()
387 qtrx->qt_delbcnt_delta; in xfs_trans_apply_dquot_deltas()
388 totalrtbdelta = qtrx->qt_rtbcount_delta + in xfs_trans_apply_dquot_deltas()
389 qtrx->qt_delrtb_delta; in xfs_trans_apply_dquot_deltas()
392 qtrx->qt_icount_delta != 0) { in xfs_trans_apply_dquot_deltas()
394 trace_xfs_trans_apply_dquot_deltas(qtrx); in xfs_trans_apply_dquot_deltas()
404 if (qtrx->qt_icount_delta < 0) in xfs_trans_apply_dquot_deltas()
405 ASSERT(dqp->q_ino.count >= -qtrx->qt_icount_delta); in xfs_trans_apply_dquot_deltas()
410 if (qtrx->qt_icount_delta) in xfs_trans_apply_dquot_deltas()
411 dqp->q_ino.count += qtrx->qt_icount_delta; in xfs_trans_apply_dquot_deltas()
417 qtrx->qt_icount_delta != 0) in xfs_trans_apply_dquot_deltas()
439 blk_res_used = max_t(int64_t, 0, qtrx->qt_bcount_delta); in xfs_trans_apply_dquot_deltas()
441 qtrx->qt_blk_res, blk_res_used, in xfs_trans_apply_dquot_deltas()
442 qtrx->qt_bcount_delta); in xfs_trans_apply_dquot_deltas()
448 qtrx->qt_rtblk_res, in xfs_trans_apply_dquot_deltas()
449 qtrx->qt_rtblk_res_used, in xfs_trans_apply_dquot_deltas()
450 qtrx->qt_rtbcount_delta); in xfs_trans_apply_dquot_deltas()
455 ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used); in xfs_trans_apply_dquot_deltas()
457 qtrx->qt_ino_res, in xfs_trans_apply_dquot_deltas()
458 qtrx->qt_ino_res_used, in xfs_trans_apply_dquot_deltas()
459 qtrx->qt_icount_delta); in xfs_trans_apply_dquot_deltas()
481 struct xfs_dqtrx *qtrx, *qa; in xfs_trans_unreserve_and_mod_dquots() local
491 qtrx = &qa[i]; in xfs_trans_unreserve_and_mod_dquots()
496 if ((dqp = qtrx->qt_dquot) == NULL) in xfs_trans_unreserve_and_mod_dquots()
504 if (qtrx->qt_blk_res) { in xfs_trans_unreserve_and_mod_dquots()
508 (xfs_qcnt_t)qtrx->qt_blk_res; in xfs_trans_unreserve_and_mod_dquots()
510 if (qtrx->qt_ino_res) { in xfs_trans_unreserve_and_mod_dquots()
516 (xfs_qcnt_t)qtrx->qt_ino_res; in xfs_trans_unreserve_and_mod_dquots()
519 if (qtrx->qt_rtblk_res) { in xfs_trans_unreserve_and_mod_dquots()
525 (xfs_qcnt_t)qtrx->qt_rtblk_res; in xfs_trans_unreserve_and_mod_dquots()