Lines Matching refs:tp

41 	xfs_trans_t	*tp,  in xfs_trans_dqjoin()  argument
44 ASSERT(dqp->q_transp != tp); in xfs_trans_dqjoin()
51 xfs_trans_add_item(tp, &dqp->q_logitem.qli_item); in xfs_trans_dqjoin()
57 dqp->q_transp = tp; in xfs_trans_dqjoin()
73 xfs_trans_t *tp, in xfs_trans_log_dquot() argument
76 ASSERT(dqp->q_transp == tp); in xfs_trans_log_dquot()
79 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_trans_log_dquot()
143 xfs_trans_t *tp, in xfs_trans_mod_dquot_byino() argument
148 xfs_mount_t *mp = tp->t_mountp; in xfs_trans_mod_dquot_byino()
155 if (tp->t_dqinfo == NULL) in xfs_trans_mod_dquot_byino()
156 xfs_trans_alloc_dqinfo(tp); in xfs_trans_mod_dquot_byino()
159 (void) xfs_trans_mod_dquot(tp, ip->i_udquot, field, delta); in xfs_trans_mod_dquot_byino()
161 (void) xfs_trans_mod_dquot(tp, ip->i_gdquot, field, delta); in xfs_trans_mod_dquot_byino()
163 (void) xfs_trans_mod_dquot(tp, ip->i_pdquot, field, delta); in xfs_trans_mod_dquot_byino()
168 struct xfs_trans *tp, in xfs_trans_get_dqtrx() argument
175 qa = tp->t_dqinfo->dqs[XFS_QM_TRANS_USR]; in xfs_trans_get_dqtrx()
177 qa = tp->t_dqinfo->dqs[XFS_QM_TRANS_GRP]; in xfs_trans_get_dqtrx()
179 qa = tp->t_dqinfo->dqs[XFS_QM_TRANS_PRJ]; in xfs_trans_get_dqtrx()
200 xfs_trans_t *tp, in xfs_trans_mod_dquot() argument
207 ASSERT(tp); in xfs_trans_mod_dquot()
208 ASSERT(XFS_IS_QUOTA_RUNNING(tp->t_mountp)); in xfs_trans_mod_dquot()
211 if (tp->t_dqinfo == NULL) in xfs_trans_mod_dquot()
212 xfs_trans_alloc_dqinfo(tp); in xfs_trans_mod_dquot()
217 qtrx = xfs_trans_get_dqtrx(tp, dqp); in xfs_trans_mod_dquot()
289 tp->t_flags |= XFS_TRANS_DQ_DIRTY; in xfs_trans_mod_dquot()
301 xfs_trans_t *tp, in xfs_trans_dqlockedjoin() argument
307 xfs_trans_dqjoin(tp, q[0].qt_dquot); in xfs_trans_dqlockedjoin()
311 xfs_trans_dqjoin(tp, q[0].qt_dquot); in xfs_trans_dqlockedjoin()
312 xfs_trans_dqjoin(tp, q[1].qt_dquot); in xfs_trans_dqlockedjoin()
327 struct xfs_trans *tp) in xfs_trans_apply_dquot_deltas() argument
336 if (!(tp->t_flags & XFS_TRANS_DQ_DIRTY)) in xfs_trans_apply_dquot_deltas()
339 ASSERT(tp->t_dqinfo); in xfs_trans_apply_dquot_deltas()
341 qa = tp->t_dqinfo->dqs[j]; in xfs_trans_apply_dquot_deltas()
348 xfs_trans_dqlockedjoin(tp, qa); in xfs_trans_apply_dquot_deltas()
360 ASSERT(dqp->q_transp == tp); in xfs_trans_apply_dquot_deltas()
411 xfs_qm_adjust_dqlimits(tp->t_mountp, dqp); in xfs_trans_apply_dquot_deltas()
412 xfs_qm_adjust_dqtimers(tp->t_mountp, d); in xfs_trans_apply_dquot_deltas()
419 xfs_trans_log_dquot(tp, dqp); in xfs_trans_apply_dquot_deltas()
506 xfs_trans_t *tp) in xfs_trans_unreserve_and_mod_dquots() argument
513 if (!tp->t_dqinfo || !(tp->t_flags & XFS_TRANS_DQ_DIRTY)) in xfs_trans_unreserve_and_mod_dquots()
517 qa = tp->t_dqinfo->dqs[j]; in xfs_trans_unreserve_and_mod_dquots()
587 xfs_trans_t *tp, in xfs_trans_dqresv() argument
701 if (tp) { in xfs_trans_dqresv()
702 ASSERT(tp->t_dqinfo); in xfs_trans_dqresv()
705 xfs_trans_mod_dquot(tp, dqp, in xfs_trans_dqresv()
709 xfs_trans_mod_dquot(tp, dqp, in xfs_trans_dqresv()
742 struct xfs_trans *tp, in xfs_trans_reserve_quota_bydquots() argument
756 if (tp && tp->t_dqinfo == NULL) in xfs_trans_reserve_quota_bydquots()
757 xfs_trans_alloc_dqinfo(tp); in xfs_trans_reserve_quota_bydquots()
762 error = xfs_trans_dqresv(tp, mp, udqp, nblks, ninos, in xfs_trans_reserve_quota_bydquots()
769 error = xfs_trans_dqresv(tp, mp, gdqp, nblks, ninos, flags); in xfs_trans_reserve_quota_bydquots()
775 error = xfs_trans_dqresv(tp, mp, pdqp, nblks, ninos, flags); in xfs_trans_reserve_quota_bydquots()
788 xfs_trans_dqresv(tp, mp, gdqp, -nblks, -ninos, flags); in xfs_trans_reserve_quota_bydquots()
792 xfs_trans_dqresv(tp, mp, udqp, -nblks, -ninos, flags); in xfs_trans_reserve_quota_bydquots()
804 struct xfs_trans *tp, in xfs_trans_reserve_quota_nblks() argument
828 return xfs_trans_reserve_quota_bydquots(tp, mp, in xfs_trans_reserve_quota_nblks()
839 xfs_trans_t *tp, in xfs_trans_get_qoff_item() argument
845 ASSERT(tp != NULL); in xfs_trans_get_qoff_item()
847 q = xfs_qm_qoff_logitem_init(tp->t_mountp, startqoff, flags); in xfs_trans_get_qoff_item()
853 xfs_trans_add_item(tp, &q->qql_item); in xfs_trans_get_qoff_item()
865 xfs_trans_t *tp, in xfs_trans_log_quotaoff_item() argument
868 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_trans_log_quotaoff_item()
874 xfs_trans_t *tp) in xfs_trans_alloc_dqinfo() argument
876 tp->t_dqinfo = kmem_zone_zalloc(xfs_qm_dqtrxzone, KM_SLEEP); in xfs_trans_alloc_dqinfo()
881 xfs_trans_t *tp) in xfs_trans_free_dqinfo() argument
883 if (!tp->t_dqinfo) in xfs_trans_free_dqinfo()
885 kmem_zone_free(xfs_qm_dqtrxzone, tp->t_dqinfo); in xfs_trans_free_dqinfo()
886 tp->t_dqinfo = NULL; in xfs_trans_free_dqinfo()