Lines Matching refs:qtrx

251 	xfs_dqtrx_t	*qtrx;  in xfs_trans_mod_dquot()  local
254 qtrx = NULL; in xfs_trans_mod_dquot()
262 qtrx = xfs_trans_get_dqtrx(tp, dqp); in xfs_trans_mod_dquot()
263 ASSERT(qtrx); in xfs_trans_mod_dquot()
264 if (qtrx->qt_dquot == NULL) in xfs_trans_mod_dquot()
265 qtrx->qt_dquot = dqp; in xfs_trans_mod_dquot()
273 qtrx->qt_blk_res += (ulong)delta; in xfs_trans_mod_dquot()
280 qtrx->qt_ino_res += (ulong)delta; in xfs_trans_mod_dquot()
287 if (qtrx->qt_blk_res && delta > 0) { in xfs_trans_mod_dquot()
288 qtrx->qt_blk_res_used += (ulong)delta; in xfs_trans_mod_dquot()
289 ASSERT(qtrx->qt_blk_res >= qtrx->qt_blk_res_used); in xfs_trans_mod_dquot()
291 qtrx->qt_bcount_delta += delta; in xfs_trans_mod_dquot()
295 qtrx->qt_delbcnt_delta += delta; in xfs_trans_mod_dquot()
302 if (qtrx->qt_ino_res && delta > 0) { in xfs_trans_mod_dquot()
303 qtrx->qt_ino_res_used += (ulong)delta; in xfs_trans_mod_dquot()
304 ASSERT(qtrx->qt_ino_res >= qtrx->qt_ino_res_used); in xfs_trans_mod_dquot()
306 qtrx->qt_icount_delta += delta; in xfs_trans_mod_dquot()
313 qtrx->qt_rtblk_res += (ulong)delta; in xfs_trans_mod_dquot()
320 if (qtrx->qt_rtblk_res && delta > 0) { in xfs_trans_mod_dquot()
321 qtrx->qt_rtblk_res_used += (ulong)delta; in xfs_trans_mod_dquot()
322 ASSERT(qtrx->qt_rtblk_res >= qtrx->qt_rtblk_res_used); in xfs_trans_mod_dquot()
324 qtrx->qt_rtbcount_delta += delta; in xfs_trans_mod_dquot()
328 qtrx->qt_delrtb_delta += delta; in xfs_trans_mod_dquot()
377 xfs_dqtrx_t *qtrx, *qa; in xfs_trans_apply_dquot_deltas() local
399 qtrx = &qa[i]; in xfs_trans_apply_dquot_deltas()
404 if ((dqp = qtrx->qt_dquot) == NULL) in xfs_trans_apply_dquot_deltas()
428 totalbdelta = qtrx->qt_bcount_delta + in xfs_trans_apply_dquot_deltas()
429 qtrx->qt_delbcnt_delta; in xfs_trans_apply_dquot_deltas()
430 totalrtbdelta = qtrx->qt_rtbcount_delta + in xfs_trans_apply_dquot_deltas()
431 qtrx->qt_delrtb_delta; in xfs_trans_apply_dquot_deltas()
441 if (qtrx->qt_icount_delta < 0) in xfs_trans_apply_dquot_deltas()
443 (xfs_qcnt_t) -qtrx->qt_icount_delta); in xfs_trans_apply_dquot_deltas()
448 if (qtrx->qt_icount_delta) in xfs_trans_apply_dquot_deltas()
449 INT_MOD(d->d_icount, ARCH_CONVERT, (xfs_qcnt_t)qtrx->qt_icount_delta); in xfs_trans_apply_dquot_deltas()
473 if (qtrx->qt_blk_res != 0) { in xfs_trans_apply_dquot_deltas()
474 if (qtrx->qt_blk_res != qtrx->qt_blk_res_used) { in xfs_trans_apply_dquot_deltas()
475 if (qtrx->qt_blk_res > in xfs_trans_apply_dquot_deltas()
476 qtrx->qt_blk_res_used) in xfs_trans_apply_dquot_deltas()
478 (qtrx->qt_blk_res - in xfs_trans_apply_dquot_deltas()
479 qtrx->qt_blk_res_used); in xfs_trans_apply_dquot_deltas()
482 (qtrx->qt_blk_res_used - in xfs_trans_apply_dquot_deltas()
483 qtrx->qt_blk_res); in xfs_trans_apply_dquot_deltas()
493 if (qtrx->qt_bcount_delta) { in xfs_trans_apply_dquot_deltas()
495 (xfs_qcnt_t)qtrx->qt_bcount_delta; in xfs_trans_apply_dquot_deltas()
501 if (qtrx->qt_rtblk_res != 0) { in xfs_trans_apply_dquot_deltas()
502 if (qtrx->qt_blk_res != qtrx->qt_blk_res_used) { in xfs_trans_apply_dquot_deltas()
503 if (qtrx->qt_rtblk_res > in xfs_trans_apply_dquot_deltas()
504 qtrx->qt_rtblk_res_used) in xfs_trans_apply_dquot_deltas()
506 (qtrx->qt_rtblk_res - in xfs_trans_apply_dquot_deltas()
507 qtrx->qt_rtblk_res_used); in xfs_trans_apply_dquot_deltas()
510 (qtrx->qt_rtblk_res_used - in xfs_trans_apply_dquot_deltas()
511 qtrx->qt_rtblk_res); in xfs_trans_apply_dquot_deltas()
514 if (qtrx->qt_rtbcount_delta) in xfs_trans_apply_dquot_deltas()
516 (xfs_qcnt_t)qtrx->qt_rtbcount_delta; in xfs_trans_apply_dquot_deltas()
522 if (qtrx->qt_ino_res != 0) { in xfs_trans_apply_dquot_deltas()
523 ASSERT(qtrx->qt_ino_res >= in xfs_trans_apply_dquot_deltas()
524 qtrx->qt_ino_res_used); in xfs_trans_apply_dquot_deltas()
525 if (qtrx->qt_ino_res > qtrx->qt_ino_res_used) in xfs_trans_apply_dquot_deltas()
527 (qtrx->qt_ino_res - in xfs_trans_apply_dquot_deltas()
528 qtrx->qt_ino_res_used); in xfs_trans_apply_dquot_deltas()
530 if (qtrx->qt_icount_delta) in xfs_trans_apply_dquot_deltas()
532 (xfs_qcnt_t)qtrx->qt_icount_delta; in xfs_trans_apply_dquot_deltas()
537 if (qtrx->qt_rtblk_res != 0) in xfs_trans_apply_dquot_deltas()
539 (int) qtrx->qt_rtblk_res, dqp); in xfs_trans_apply_dquot_deltas()
568 xfs_dqtrx_t *qtrx, *qa; in xfs_trans_unreserve_and_mod_dquots() local
578 qtrx = &qa[i]; in xfs_trans_unreserve_and_mod_dquots()
583 if ((dqp = qtrx->qt_dquot) == NULL) in xfs_trans_unreserve_and_mod_dquots()
591 if (qtrx->qt_blk_res) { in xfs_trans_unreserve_and_mod_dquots()
595 (xfs_qcnt_t)qtrx->qt_blk_res; in xfs_trans_unreserve_and_mod_dquots()
597 if (qtrx->qt_ino_res) { in xfs_trans_unreserve_and_mod_dquots()
603 (xfs_qcnt_t)qtrx->qt_ino_res; in xfs_trans_unreserve_and_mod_dquots()
606 if (qtrx->qt_rtblk_res) { in xfs_trans_unreserve_and_mod_dquots()
612 (xfs_qcnt_t)qtrx->qt_rtblk_res; in xfs_trans_unreserve_and_mod_dquots()