Lines Matching refs:tp

99 	struct xfs_trans		**tp,	/* transaction pointer addr */  in xfs_bmap_finish()  argument
109 ASSERT((*tp)->t_flags & XFS_TRANS_PERM_LOG_RES); in xfs_bmap_finish()
114 efi = xfs_trans_get_efi(*tp, flist->xbf_count); in xfs_bmap_finish()
116 xfs_trans_log_efi_extent(*tp, efi, free->xbfi_startblock, in xfs_bmap_finish()
119 error = __xfs_trans_roll(tp, NULL, committed); in xfs_bmap_finish()
133 xfs_force_shutdown((*tp)->t_mountp, in xfs_bmap_finish()
149 efd = xfs_trans_get_efd(*tp, efi, flist->xbf_count); in xfs_bmap_finish()
153 error = xfs_trans_free_extent(*tp, efd, free->xbfi_startblock, in xfs_bmap_finish()
211 xfs_trans_ijoin(ap->tp, mp->m_rbmip, XFS_ILOCK_EXCL); in xfs_bmap_rtalloc()
220 error = xfs_rtpick_extent(mp, ap->tp, ralen, &rtx); in xfs_bmap_rtalloc()
237 if ((error = xfs_rtallocate_extent(ap->tp, ap->blkno, 1, ap->length, in xfs_bmap_rtalloc()
241 (error = xfs_rtallocate_extent(ap->tp, ap->blkno, 1, in xfs_bmap_rtalloc()
251 xfs_trans_log_inode(ap->tp, ap->ip, XFS_ILOG_CORE); in xfs_bmap_rtalloc()
258 xfs_trans_mod_dquot_byino(ap->tp, ap->ip, in xfs_bmap_rtalloc()
346 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_count_tree() argument
361 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, XFS_BMAP_BTREE_REF, in xfs_bmap_count_tree()
372 error = xfs_btree_read_bufl(mp, tp, nextbno, 0, &nbp, in xfs_bmap_count_tree()
380 xfs_trans_brelse(tp, nbp); in xfs_bmap_count_tree()
387 xfs_bmap_count_tree(mp, tp, ifp, bno, level, count)) < 0)) { in xfs_bmap_count_tree()
388 xfs_trans_brelse(tp, bp); in xfs_bmap_count_tree()
393 xfs_trans_brelse(tp, bp); in xfs_bmap_count_tree()
400 xfs_trans_brelse(tp, bp); in xfs_bmap_count_tree()
404 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, in xfs_bmap_count_tree()
421 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_count_blocks() argument
455 if (unlikely(xfs_bmap_count_tree(mp, tp, ifp, bno, level, count) < 0)) { in xfs_bmap_count_blocks()
865 xfs_trans_t *tp; in xfs_free_eofblocks() local
903 tp = xfs_trans_alloc(mp, XFS_TRANS_INACTIVE); in xfs_free_eofblocks()
907 xfs_trans_cancel(tp); in xfs_free_eofblocks()
912 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_itruncate, 0, 0); in xfs_free_eofblocks()
915 xfs_trans_cancel(tp); in xfs_free_eofblocks()
922 xfs_trans_ijoin(tp, ip, 0); in xfs_free_eofblocks()
930 error = xfs_itruncate_extents(&tp, ip, XFS_DATA_FORK, in xfs_free_eofblocks()
937 xfs_trans_cancel(tp); in xfs_free_eofblocks()
939 error = xfs_trans_commit(tp); in xfs_free_eofblocks()
968 xfs_trans_t *tp; in xfs_alloc_file_space() local
1041 tp = xfs_trans_alloc(mp, XFS_TRANS_DIOSTRAT); in xfs_alloc_file_space()
1042 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_write, in xfs_alloc_file_space()
1052 xfs_trans_cancel(tp); in xfs_alloc_file_space()
1056 error = xfs_trans_reserve_quota_nblks(tp, ip, qblocks, in xfs_alloc_file_space()
1061 xfs_trans_ijoin(tp, ip, 0); in xfs_alloc_file_space()
1064 error = xfs_bmapi_write(tp, ip, startoffset_fsb, in xfs_alloc_file_space()
1074 error = xfs_bmap_finish(&tp, &free_list, &committed); in xfs_alloc_file_space()
1079 error = xfs_trans_commit(tp); in xfs_alloc_file_space()
1100 xfs_trans_unreserve_quota_nblks(tp, ip, (long)qblocks, 0, quota_flag); in xfs_alloc_file_space()
1103 xfs_trans_cancel(tp); in xfs_alloc_file_space()
1225 xfs_trans_t *tp; in xfs_free_file_space() local
1319 tp = xfs_trans_alloc(mp, XFS_TRANS_DIOSTRAT); in xfs_free_file_space()
1320 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_write, resblks, 0); in xfs_free_file_space()
1330 xfs_trans_cancel(tp); in xfs_free_file_space()
1334 error = xfs_trans_reserve_quota(tp, mp, in xfs_free_file_space()
1340 xfs_trans_ijoin(tp, ip, 0); in xfs_free_file_space()
1346 error = xfs_bunmapi(tp, ip, startoffset_fsb, in xfs_free_file_space()
1356 error = xfs_bmap_finish(&tp, &free_list, &committed); in xfs_free_file_space()
1361 error = xfs_trans_commit(tp); in xfs_free_file_space()
1371 xfs_trans_cancel(tp); in xfs_free_file_space()
1433 struct xfs_trans *tp; in xfs_shift_file_space() local
1493 tp = xfs_trans_alloc(mp, XFS_TRANS_DIOSTRAT); in xfs_shift_file_space()
1500 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_write, in xfs_shift_file_space()
1503 xfs_trans_cancel(tp); in xfs_shift_file_space()
1508 error = xfs_trans_reserve_quota(tp, mp, ip->i_udquot, in xfs_shift_file_space()
1515 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_shift_file_space()
1523 error = xfs_bmap_shift_extents(tp, ip, &next_fsb, shift_fsb, in xfs_shift_file_space()
1529 error = xfs_bmap_finish(&tp, &free_list, &committed); in xfs_shift_file_space()
1533 error = xfs_trans_commit(tp); in xfs_shift_file_space()
1541 xfs_trans_cancel(tp); in xfs_shift_file_space()
1713 xfs_trans_t *tp; in xfs_swap_extents() local
1758 tp = xfs_trans_alloc(mp, XFS_TRANS_SWAPEXT); in xfs_swap_extents()
1759 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_ichange, 0, 0); in xfs_swap_extents()
1761 xfs_trans_cancel(tp); in xfs_swap_extents()
1771 xfs_trans_ijoin(tp, ip, lock_flags); in xfs_swap_extents()
1772 xfs_trans_ijoin(tp, tip, lock_flags); in xfs_swap_extents()
1814 error = xfs_bmap_count_blocks(tp, ip, XFS_ATTR_FORK, &aforkblks); in xfs_swap_extents()
1820 error = xfs_bmap_count_blocks(tp, tip, XFS_ATTR_FORK, in xfs_swap_extents()
1844 error = xfs_bmbt_change_owner(tp, ip, XFS_DATA_FORK, in xfs_swap_extents()
1853 error = xfs_bmbt_change_owner(tp, tip, XFS_DATA_FORK, in xfs_swap_extents()
1934 xfs_trans_log_inode(tp, ip, src_log_flags); in xfs_swap_extents()
1935 xfs_trans_log_inode(tp, tip, target_log_flags); in xfs_swap_extents()
1942 xfs_trans_set_sync(tp); in xfs_swap_extents()
1944 error = xfs_trans_commit(tp); in xfs_swap_extents()
1958 xfs_trans_cancel(tp); in xfs_swap_extents()