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()
149 xfs_trans_t *tp, in xfs_trans_mod_dquot_byino() argument
154 xfs_mount_t *mp = tp->t_mountp; in xfs_trans_mod_dquot_byino()
161 if (tp->t_dqinfo == NULL) in xfs_trans_mod_dquot_byino()
162 xfs_trans_alloc_dqinfo(tp); in xfs_trans_mod_dquot_byino()
165 (void) xfs_trans_mod_dquot(tp, ip->i_udquot, field, delta); in xfs_trans_mod_dquot_byino()
167 (void) xfs_trans_mod_dquot(tp, ip->i_gdquot, field, delta); in xfs_trans_mod_dquot_byino()
169 (void) xfs_trans_mod_dquot(tp, ip->i_pdquot, field, delta); in xfs_trans_mod_dquot_byino()
174 struct xfs_trans *tp, in xfs_trans_get_dqtrx() argument
181 qa = tp->t_dqinfo->dqs[XFS_QM_TRANS_USR]; in xfs_trans_get_dqtrx()
183 qa = tp->t_dqinfo->dqs[XFS_QM_TRANS_GRP]; in xfs_trans_get_dqtrx()
185 qa = tp->t_dqinfo->dqs[XFS_QM_TRANS_PRJ]; in xfs_trans_get_dqtrx()
206 xfs_trans_t *tp, in xfs_trans_mod_dquot() argument
213 ASSERT(tp); in xfs_trans_mod_dquot()
214 ASSERT(XFS_IS_QUOTA_RUNNING(tp->t_mountp)); in xfs_trans_mod_dquot()
217 if (tp->t_dqinfo == NULL) in xfs_trans_mod_dquot()
218 xfs_trans_alloc_dqinfo(tp); in xfs_trans_mod_dquot()
223 qtrx = xfs_trans_get_dqtrx(tp, dqp); in xfs_trans_mod_dquot()
291 tp->t_flags |= XFS_TRANS_DQ_DIRTY; in xfs_trans_mod_dquot()
303 xfs_trans_t *tp, in xfs_trans_dqlockedjoin() argument
309 xfs_trans_dqjoin(tp, q[0].qt_dquot); in xfs_trans_dqlockedjoin()
313 xfs_trans_dqjoin(tp, q[0].qt_dquot); in xfs_trans_dqlockedjoin()
314 xfs_trans_dqjoin(tp, q[1].qt_dquot); in xfs_trans_dqlockedjoin()
329 struct xfs_trans *tp) in xfs_trans_apply_dquot_deltas() argument
338 if (!(tp->t_flags & XFS_TRANS_DQ_DIRTY)) in xfs_trans_apply_dquot_deltas()
341 ASSERT(tp->t_dqinfo); in xfs_trans_apply_dquot_deltas()
343 qa = tp->t_dqinfo->dqs[j]; in xfs_trans_apply_dquot_deltas()
350 xfs_trans_dqlockedjoin(tp, qa); in xfs_trans_apply_dquot_deltas()
362 ASSERT(dqp->q_transp == tp); in xfs_trans_apply_dquot_deltas()
413 xfs_qm_adjust_dqlimits(tp->t_mountp, dqp); in xfs_trans_apply_dquot_deltas()
414 xfs_qm_adjust_dqtimers(tp->t_mountp, d); in xfs_trans_apply_dquot_deltas()
421 xfs_trans_log_dquot(tp, dqp); in xfs_trans_apply_dquot_deltas()
512 xfs_trans_t *tp) in xfs_trans_unreserve_and_mod_dquots() argument
519 if (!tp->t_dqinfo || !(tp->t_flags & XFS_TRANS_DQ_DIRTY)) in xfs_trans_unreserve_and_mod_dquots()
523 qa = tp->t_dqinfo->dqs[j]; in xfs_trans_unreserve_and_mod_dquots()
593 xfs_trans_t *tp, in xfs_trans_dqresv() argument
707 if (tp) { in xfs_trans_dqresv()
708 ASSERT(tp->t_dqinfo); in xfs_trans_dqresv()
711 xfs_trans_mod_dquot(tp, dqp, in xfs_trans_dqresv()
715 xfs_trans_mod_dquot(tp, dqp, in xfs_trans_dqresv()
748 struct xfs_trans *tp, in xfs_trans_reserve_quota_bydquots() argument
762 if (tp && tp->t_dqinfo == NULL) in xfs_trans_reserve_quota_bydquots()
763 xfs_trans_alloc_dqinfo(tp); in xfs_trans_reserve_quota_bydquots()
768 error = xfs_trans_dqresv(tp, mp, udqp, nblks, ninos, in xfs_trans_reserve_quota_bydquots()
775 error = xfs_trans_dqresv(tp, mp, gdqp, nblks, ninos, flags); in xfs_trans_reserve_quota_bydquots()
781 error = xfs_trans_dqresv(tp, mp, pdqp, nblks, ninos, flags); in xfs_trans_reserve_quota_bydquots()
794 xfs_trans_dqresv(tp, mp, gdqp, -nblks, -ninos, flags); in xfs_trans_reserve_quota_bydquots()
798 xfs_trans_dqresv(tp, mp, udqp, -nblks, -ninos, flags); in xfs_trans_reserve_quota_bydquots()
810 struct xfs_trans *tp, in xfs_trans_reserve_quota_nblks() argument
834 return xfs_trans_reserve_quota_bydquots(tp, mp, in xfs_trans_reserve_quota_nblks()
845 xfs_trans_t *tp, in xfs_trans_get_qoff_item() argument
851 ASSERT(tp != NULL); in xfs_trans_get_qoff_item()
853 q = xfs_qm_qoff_logitem_init(tp->t_mountp, startqoff, flags); in xfs_trans_get_qoff_item()
859 xfs_trans_add_item(tp, &q->qql_item); in xfs_trans_get_qoff_item()
871 xfs_trans_t *tp, in xfs_trans_log_quotaoff_item() argument
874 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_trans_log_quotaoff_item()
880 xfs_trans_t *tp) in xfs_trans_alloc_dqinfo() argument
882 tp->t_dqinfo = kmem_zone_zalloc(xfs_qm_dqtrxzone, KM_SLEEP); in xfs_trans_alloc_dqinfo()
887 xfs_trans_t *tp) in xfs_trans_free_dqinfo() argument
889 if (!tp->t_dqinfo) in xfs_trans_free_dqinfo()
891 kmem_zone_free(xfs_qm_dqtrxzone, tp->t_dqinfo); in xfs_trans_free_dqinfo()
892 tp->t_dqinfo = NULL; in xfs_trans_free_dqinfo()