Lines Matching refs:tp
227 struct xfs_trans *tp; in xfs_qm_scall_trunc_qfile() local
239 tp = xfs_trans_alloc(mp, XFS_TRANS_TRUNCATE_FILE); in xfs_qm_scall_trunc_qfile()
240 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_itruncate, 0, 0); in xfs_qm_scall_trunc_qfile()
242 xfs_trans_cancel(tp, 0); in xfs_qm_scall_trunc_qfile()
248 xfs_trans_ijoin(tp, ip, 0); in xfs_qm_scall_trunc_qfile()
251 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_qm_scall_trunc_qfile()
253 error = xfs_itruncate_extents(&tp, ip, XFS_DATA_FORK, 0); in xfs_qm_scall_trunc_qfile()
255 xfs_trans_cancel(tp, XFS_TRANS_RELEASE_LOG_RES | in xfs_qm_scall_trunc_qfile()
262 xfs_trans_ichgtime(tp, ip, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); in xfs_qm_scall_trunc_qfile()
263 error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); in xfs_qm_scall_trunc_qfile()
407 struct xfs_trans *tp; in xfs_qm_scall_setqlim() local
437 tp = xfs_trans_alloc(mp, XFS_TRANS_QM_SETQLIM); in xfs_qm_scall_setqlim()
438 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_qm_setqlim, 0, 0); in xfs_qm_scall_setqlim()
440 xfs_trans_cancel(tp, 0); in xfs_qm_scall_setqlim()
445 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim()
549 xfs_trans_log_dquot(tp, dqp); in xfs_qm_scall_setqlim()
551 error = xfs_trans_commit(tp, 0); in xfs_qm_scall_setqlim()
566 xfs_trans_t *tp; in xfs_qm_log_quotaoff_end() local
570 tp = xfs_trans_alloc(mp, XFS_TRANS_QM_QUOTAOFF_END); in xfs_qm_log_quotaoff_end()
572 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_qm_equotaoff, 0, 0); in xfs_qm_log_quotaoff_end()
574 xfs_trans_cancel(tp, 0); in xfs_qm_log_quotaoff_end()
578 qoffi = xfs_trans_get_qoff_item(tp, startqoff, in xfs_qm_log_quotaoff_end()
580 xfs_trans_log_quotaoff_item(tp, qoffi); in xfs_qm_log_quotaoff_end()
587 xfs_trans_set_sync(tp); in xfs_qm_log_quotaoff_end()
588 error = xfs_trans_commit(tp, 0); in xfs_qm_log_quotaoff_end()
599 xfs_trans_t *tp; in xfs_qm_log_quotaoff() local
605 tp = xfs_trans_alloc(mp, XFS_TRANS_QM_QUOTAOFF); in xfs_qm_log_quotaoff()
606 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_qm_quotaoff, 0, 0); in xfs_qm_log_quotaoff()
608 xfs_trans_cancel(tp, 0); in xfs_qm_log_quotaoff()
612 qoffi = xfs_trans_get_qoff_item(tp, NULL, flags & XFS_ALL_QUOTA_ACCT); in xfs_qm_log_quotaoff()
613 xfs_trans_log_quotaoff_item(tp, qoffi); in xfs_qm_log_quotaoff()
619 xfs_log_sb(tp); in xfs_qm_log_quotaoff()
626 xfs_trans_set_sync(tp); in xfs_qm_log_quotaoff()
627 error = xfs_trans_commit(tp, 0); in xfs_qm_log_quotaoff()