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); 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); in xfs_qm_scall_trunc_qfile()
261 xfs_trans_ichgtime(tp, ip, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); in xfs_qm_scall_trunc_qfile()
262 error = xfs_trans_commit(tp); in xfs_qm_scall_trunc_qfile()
406 struct xfs_trans *tp; in xfs_qm_scall_setqlim() local
436 tp = xfs_trans_alloc(mp, XFS_TRANS_QM_SETQLIM); in xfs_qm_scall_setqlim()
437 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_qm_setqlim, 0, 0); in xfs_qm_scall_setqlim()
439 xfs_trans_cancel(tp); in xfs_qm_scall_setqlim()
444 xfs_trans_dqjoin(tp, dqp); in xfs_qm_scall_setqlim()
548 xfs_trans_log_dquot(tp, dqp); in xfs_qm_scall_setqlim()
550 error = xfs_trans_commit(tp); in xfs_qm_scall_setqlim()
565 xfs_trans_t *tp; in xfs_qm_log_quotaoff_end() local
569 tp = xfs_trans_alloc(mp, XFS_TRANS_QM_QUOTAOFF_END); in xfs_qm_log_quotaoff_end()
571 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_qm_equotaoff, 0, 0); in xfs_qm_log_quotaoff_end()
573 xfs_trans_cancel(tp); in xfs_qm_log_quotaoff_end()
577 qoffi = xfs_trans_get_qoff_item(tp, startqoff, in xfs_qm_log_quotaoff_end()
579 xfs_trans_log_quotaoff_item(tp, qoffi); in xfs_qm_log_quotaoff_end()
586 xfs_trans_set_sync(tp); in xfs_qm_log_quotaoff_end()
587 return xfs_trans_commit(tp); in xfs_qm_log_quotaoff_end()
597 xfs_trans_t *tp; in xfs_qm_log_quotaoff() local
603 tp = xfs_trans_alloc(mp, XFS_TRANS_QM_QUOTAOFF); in xfs_qm_log_quotaoff()
604 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_qm_quotaoff, 0, 0); in xfs_qm_log_quotaoff()
606 xfs_trans_cancel(tp); in xfs_qm_log_quotaoff()
610 qoffi = xfs_trans_get_qoff_item(tp, NULL, flags & XFS_ALL_QUOTA_ACCT); in xfs_qm_log_quotaoff()
611 xfs_trans_log_quotaoff_item(tp, qoffi); in xfs_qm_log_quotaoff()
617 xfs_log_sb(tp); in xfs_qm_log_quotaoff()
624 xfs_trans_set_sync(tp); in xfs_qm_log_quotaoff()
625 error = xfs_trans_commit(tp); in xfs_qm_log_quotaoff()