• Home
  • Raw
  • Download

Lines Matching refs:tp

49 	xfs_trans_t	*tp,  in xfs_trans_dqjoin()  argument
52 ASSERT(dqp->q_transp != tp); in xfs_trans_dqjoin()
59 xfs_trans_add_item(tp, &dqp->q_logitem.qli_item); in xfs_trans_dqjoin()
65 dqp->q_transp = tp; in xfs_trans_dqjoin()
81 xfs_trans_t *tp, in xfs_trans_log_dquot() argument
84 ASSERT(dqp->q_transp == tp); in xfs_trans_log_dquot()
87 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_trans_log_dquot()
153 xfs_trans_t *tp, in xfs_trans_mod_dquot_byino() argument
158 xfs_mount_t *mp = tp->t_mountp; in xfs_trans_mod_dquot_byino()
166 if (tp->t_dqinfo == NULL) in xfs_trans_mod_dquot_byino()
167 xfs_trans_alloc_dqinfo(tp); in xfs_trans_mod_dquot_byino()
170 (void) xfs_trans_mod_dquot(tp, ip->i_udquot, field, delta); in xfs_trans_mod_dquot_byino()
172 (void) xfs_trans_mod_dquot(tp, ip->i_gdquot, field, delta); in xfs_trans_mod_dquot_byino()
177 xfs_trans_t *tp, in xfs_trans_get_dqtrx() argument
184 tp->t_dqinfo->dqa_usrdquots : tp->t_dqinfo->dqa_grpdquots; in xfs_trans_get_dqtrx()
203 xfs_trans_t *tp, in xfs_trans_mod_dquot() argument
210 ASSERT(tp); in xfs_trans_mod_dquot()
211 ASSERT(XFS_IS_QUOTA_RUNNING(tp->t_mountp)); in xfs_trans_mod_dquot()
214 if (tp->t_dqinfo == NULL) in xfs_trans_mod_dquot()
215 xfs_trans_alloc_dqinfo(tp); in xfs_trans_mod_dquot()
220 qtrx = xfs_trans_get_dqtrx(tp, dqp); in xfs_trans_mod_dquot()
292 tp->t_flags |= XFS_TRANS_DQ_DIRTY; in xfs_trans_mod_dquot()
305 xfs_trans_t *tp, in xfs_trans_dqlockedjoin() argument
311 xfs_trans_dqjoin(tp, q[0].qt_dquot); in xfs_trans_dqlockedjoin()
315 xfs_trans_dqjoin(tp, q[0].qt_dquot); in xfs_trans_dqlockedjoin()
316 xfs_trans_dqjoin(tp, q[1].qt_dquot); in xfs_trans_dqlockedjoin()
331 xfs_trans_t *tp) in xfs_trans_apply_dquot_deltas() argument
340 if (!(tp->t_flags & XFS_TRANS_DQ_DIRTY)) in xfs_trans_apply_dquot_deltas()
343 ASSERT(tp->t_dqinfo); in xfs_trans_apply_dquot_deltas()
344 qa = tp->t_dqinfo->dqa_usrdquots; in xfs_trans_apply_dquot_deltas()
347 qa = tp->t_dqinfo->dqa_grpdquots; in xfs_trans_apply_dquot_deltas()
354 xfs_trans_dqlockedjoin(tp, qa); in xfs_trans_apply_dquot_deltas()
366 ASSERT(dqp->q_transp == tp); in xfs_trans_apply_dquot_deltas()
417 xfs_qm_adjust_dqlimits(tp->t_mountp, d); in xfs_trans_apply_dquot_deltas()
418 xfs_qm_adjust_dqtimers(tp->t_mountp, d); in xfs_trans_apply_dquot_deltas()
425 xfs_trans_log_dquot(tp, dqp); in xfs_trans_apply_dquot_deltas()
503 qa = tp->t_dqinfo->dqa_grpdquots; in xfs_trans_apply_dquot_deltas()
516 xfs_trans_t *tp) in xfs_trans_unreserve_and_mod_dquots() argument
523 if (!tp->t_dqinfo || !(tp->t_flags & XFS_TRANS_DQ_DIRTY)) in xfs_trans_unreserve_and_mod_dquots()
526 qa = tp->t_dqinfo->dqa_usrdquots; in xfs_trans_unreserve_and_mod_dquots()
570 qa = tp->t_dqinfo->dqa_grpdquots; in xfs_trans_unreserve_and_mod_dquots()
596 xfs_trans_t *tp, in xfs_trans_dqresv() argument
710 if (tp) { in xfs_trans_dqresv()
711 ASSERT(tp->t_dqinfo); in xfs_trans_dqresv()
714 xfs_trans_mod_dquot(tp, dqp, in xfs_trans_dqresv()
718 xfs_trans_mod_dquot(tp, dqp, in xfs_trans_dqresv()
751 xfs_trans_t *tp, in xfs_trans_reserve_quota_bydquots() argument
764 if (tp && tp->t_dqinfo == NULL) in xfs_trans_reserve_quota_bydquots()
765 xfs_trans_alloc_dqinfo(tp); in xfs_trans_reserve_quota_bydquots()
770 error = xfs_trans_dqresv(tp, mp, udqp, nblks, ninos, in xfs_trans_reserve_quota_bydquots()
778 error = xfs_trans_dqresv(tp, mp, gdqp, nblks, ninos, flags); in xfs_trans_reserve_quota_bydquots()
785 xfs_trans_dqresv(tp, mp, udqp, in xfs_trans_reserve_quota_bydquots()
806 struct xfs_trans *tp, in xfs_trans_reserve_quota_nblks() argument
831 return xfs_trans_reserve_quota_bydquots(tp, mp, in xfs_trans_reserve_quota_nblks()
841 xfs_trans_t *tp, in xfs_trans_get_qoff_item() argument
847 ASSERT(tp != NULL); in xfs_trans_get_qoff_item()
849 q = xfs_qm_qoff_logitem_init(tp->t_mountp, startqoff, flags); in xfs_trans_get_qoff_item()
855 xfs_trans_add_item(tp, &q->qql_item); in xfs_trans_get_qoff_item()
867 xfs_trans_t *tp, in xfs_trans_log_quotaoff_item() argument
870 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_trans_log_quotaoff_item()
876 xfs_trans_t *tp) in xfs_trans_alloc_dqinfo() argument
878 tp->t_dqinfo = kmem_zone_zalloc(xfs_qm_dqtrxzone, KM_SLEEP); in xfs_trans_alloc_dqinfo()
883 xfs_trans_t *tp) in xfs_trans_free_dqinfo() argument
885 if (!tp->t_dqinfo) in xfs_trans_free_dqinfo()
887 kmem_zone_free(xfs_qm_dqtrxzone, tp->t_dqinfo); in xfs_trans_free_dqinfo()
888 tp->t_dqinfo = NULL; in xfs_trans_free_dqinfo()