Lines Matching refs:tp
134 xfs_trans_brelse(args->tp, args->rbmbp); in xfs_rtbuf_cache_relse()
139 xfs_trans_brelse(args->tp, args->sumbp); in xfs_rtbuf_cache_relse()
191 xfs_trans_brelse(args->tp, *cbpp); in xfs_rtbuf_get()
205 error = xfs_trans_read_buf(mp, args->tp, mp->m_ddev_targp, in xfs_rtbuf_get()
219 xfs_trans_brelse(args->tp, bp); in xfs_rtbuf_get()
225 xfs_trans_buf_set_type(args->tp, bp, buf_type); in xfs_rtbuf_get()
578 xfs_trans_log_buf(args->tp, bp, first, last); in xfs_trans_log_rtsummary()
651 xfs_trans_log_buf(args->tp, bp, first, last); in xfs_trans_log_rtbitmap()
1052 struct xfs_trans *tp, /* transaction pointer */ in xfs_rtfree_extent() argument
1057 struct xfs_mount *mp = tp->t_mountp; in xfs_rtfree_extent()
1061 .tp = tp, in xfs_rtfree_extent()
1087 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FREXTENTS, (long)len); in xfs_rtfree_extent()
1094 tp->t_frextents_delta + mp->m_sb.sb_frextents == in xfs_rtfree_extent()
1102 xfs_trans_log_inode(tp, rbmip, XFS_ILOG_CORE); in xfs_rtfree_extent()
1117 struct xfs_trans *tp, in xfs_rtfree_blocks() argument
1122 struct xfs_mount *mp = tp->t_mountp; in xfs_rtfree_blocks()
1141 error = xfs_rtfree_extent(tp, rtg, xfs_rtb_to_rtx(mp, rtbno), in xfs_rtfree_blocks()
1147 xfs_extent_busy_insert(tp, rtg_group(rtg), in xfs_rtfree_blocks()
1157 struct xfs_trans *tp, in xfs_rtalloc_query_range() argument
1167 .tp = tp, in xfs_rtalloc_query_range()
1202 error = fn(rtg, tp, &rec, priv); in xfs_rtalloc_query_range()
1218 struct xfs_trans *tp, in xfs_rtalloc_query_all() argument
1222 return xfs_rtalloc_query_range(rtg, tp, 0, rtg->rtg_extents - 1, fn, in xfs_rtalloc_query_all()
1230 struct xfs_trans *tp, in xfs_rtalloc_extent_is_free() argument
1238 .tp = tp, in xfs_rtalloc_extent_is_free()
1335 struct xfs_trans *tp; in xfs_rtfile_alloc_blocks() local
1340 XFS_GROWFSRT_SPACE_RES(mp, count_fsb), 0, 0, &tp); in xfs_rtfile_alloc_blocks()
1345 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_rtfile_alloc_blocks()
1347 error = xfs_iext_count_extend(tp, ip, XFS_DATA_FORK, in xfs_rtfile_alloc_blocks()
1352 error = xfs_bmapi_write(tp, ip, offset_fsb, count_fsb, in xfs_rtfile_alloc_blocks()
1357 return xfs_trans_commit(tp); in xfs_rtfile_alloc_blocks()
1360 xfs_trans_cancel(tp); in xfs_rtfile_alloc_blocks()
1374 struct xfs_trans *tp; in xfs_rtfile_initialize_block() local
1388 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growrtzero, 0, 0, 0, &tp); in xfs_rtfile_initialize_block()
1392 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_rtfile_initialize_block()
1394 error = xfs_trans_get_buf(tp, mp->m_ddev_targp, in xfs_rtfile_initialize_block()
1397 xfs_trans_cancel(tp); in xfs_rtfile_initialize_block()
1402 xfs_trans_buf_set_type(tp, bp, buf_type); in xfs_rtfile_initialize_block()
1424 xfs_trans_log_buf(tp, bp, 0, mp->m_sb.sb_blocksize - 1); in xfs_rtfile_initialize_block()
1425 return xfs_trans_commit(tp); in xfs_rtfile_initialize_block()
1478 struct xfs_trans *tp, in xfs_rtbitmap_create() argument
1488 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_rtbitmap_create()
1496 struct xfs_trans *tp, in xfs_rtsummary_create() argument
1502 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_rtsummary_create()