Lines Matching refs:tp
661 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_btree_to_extents() argument
692 error = xfs_btree_read_bufl(mp, tp, cbno, 0, &cbp, XFS_BMAP_BTREE_REF, in xfs_bmap_btree_to_extents()
701 xfs_trans_mod_dquot_byino(tp, ip, XFS_TRANS_DQ_BCOUNT, -1L); in xfs_bmap_btree_to_extents()
702 xfs_trans_binval(tp, cbp); in xfs_bmap_btree_to_extents()
719 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_extents_to_btree() argument
769 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_extents_to_btree()
778 args.tp = tp; in xfs_bmap_extents_to_btree()
810 xfs_trans_mod_dquot_byino(tp, ip, XFS_TRANS_DQ_BCOUNT, 1L); in xfs_bmap_extents_to_btree()
811 abp = xfs_btree_get_bufl(mp, tp, args.fsbno, 0); in xfs_bmap_extents_to_btree()
887 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_local_to_extents() argument
893 void (*init_fn)(struct xfs_trans *tp, in xfs_bmap_local_to_extents() argument
924 args.tp = tp; in xfs_bmap_local_to_extents()
948 bp = xfs_btree_get_bufl(args.mp, tp, args.fsbno, 0); in xfs_bmap_local_to_extents()
958 init_fn(tp, bp, ip, ifp); in xfs_bmap_local_to_extents()
973 xfs_trans_mod_dquot_byino(tp, ip, in xfs_bmap_local_to_extents()
987 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_add_attrfork_btree() argument
1002 cur = xfs_bmbt_init_cursor(mp, tp, ip, XFS_DATA_FORK); in xfs_bmap_add_attrfork_btree()
1030 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_add_attrfork_extents() argument
1042 error = xfs_bmap_extents_to_btree(tp, ip, firstblock, flist, &cur, 0, in xfs_bmap_add_attrfork_extents()
1065 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_add_attrfork_local() argument
1084 dargs.trans = tp; in xfs_bmap_add_attrfork_local()
1089 return xfs_bmap_local_to_extents(tp, ip, firstblock, 1, in xfs_bmap_add_attrfork_local()
1111 xfs_trans_t *tp; /* transaction pointer */ in xfs_bmap_add_attrfork() local
1122 tp = xfs_trans_alloc(mp, XFS_TRANS_ADDAFORK); in xfs_bmap_add_attrfork()
1125 tp->t_flags |= XFS_TRANS_RESERVE; in xfs_bmap_add_attrfork()
1126 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_addafork, blks, 0); in xfs_bmap_add_attrfork()
1128 xfs_trans_cancel(tp); in xfs_bmap_add_attrfork()
1132 error = xfs_trans_reserve_quota_nblks(tp, ip, blks, 0, rsvd ? in xfs_bmap_add_attrfork()
1148 xfs_trans_ijoin(tp, ip, 0); in xfs_bmap_add_attrfork()
1149 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_bmap_add_attrfork()
1180 error = xfs_bmap_add_attrfork_local(tp, ip, &firstblock, &flist, in xfs_bmap_add_attrfork()
1184 error = xfs_bmap_add_attrfork_extents(tp, ip, &firstblock, in xfs_bmap_add_attrfork()
1188 error = xfs_bmap_add_attrfork_btree(tp, ip, &firstblock, &flist, in xfs_bmap_add_attrfork()
1196 xfs_trans_log_inode(tp, ip, logflags); in xfs_bmap_add_attrfork()
1214 xfs_log_sb(tp); in xfs_bmap_add_attrfork()
1217 error = xfs_bmap_finish(&tp, &flist, &committed); in xfs_bmap_add_attrfork()
1220 error = xfs_trans_commit(tp); in xfs_bmap_add_attrfork()
1227 xfs_trans_cancel(tp); in xfs_bmap_add_attrfork()
1244 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_read_extents() argument
1282 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, in xfs_bmap_read_extents()
1293 xfs_trans_brelse(tp, bp); in xfs_bmap_read_extents()
1350 xfs_trans_brelse(tp, bp); in xfs_bmap_read_extents()
1357 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, in xfs_bmap_read_extents()
1368 xfs_trans_brelse(tp, bp); in xfs_bmap_read_extents()
1472 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_first_unused() argument
1496 (error = xfs_iread_extents(tp, ip, whichfork))) in xfs_bmap_first_unused()
1525 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_last_before() argument
1549 (error = xfs_iread_extents(tp, ip, whichfork))) in xfs_bmap_last_before()
1568 struct xfs_trans *tp, in xfs_bmap_last_extent() argument
1579 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_last_extent()
1728 mp = bma->tp ? bma->tp->t_mountp : NULL; in xfs_bmap_add_extent_delay_real()
2020 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
2104 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
2173 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
2222 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
2259 struct xfs_trans *tp, in xfs_bmap_add_extent_unwritten_real() argument
2280 struct xfs_mount *mp = tp->t_mountp; in xfs_bmap_add_extent_unwritten_real()
2758 error = xfs_bmap_extents_to_btree(tp, ip, first, flist, &cur, in xfs_bmap_add_extent_unwritten_real()
2942 mp = bma->tp ? bma->tp->t_mountp : NULL; in xfs_bmap_add_extent_hole_real()
3150 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_hole_real()
3501 struct xfs_trans *tp, in xfs_bmap_longest_free_extent() argument
3506 struct xfs_mount *mp = tp->t_mountp; in xfs_bmap_longest_free_extent()
3513 error = xfs_alloc_pagf_init(mp, tp, ag, XFS_ALLOC_FLAG_TRYLOCK); in xfs_bmap_longest_free_extent()
3580 error = xfs_bmap_longest_free_extent(args->tp, ag, blen, in xfs_bmap_btalloc_nullfb()
3613 error = xfs_bmap_longest_free_extent(args->tp, ag, blen, ¬init); in xfs_bmap_btalloc_filestreams()
3622 error = xfs_bmap_longest_free_extent(args->tp, ag, blen, in xfs_bmap_btalloc_filestreams()
3706 args.tp = ap->tp; in xfs_bmap_btalloc()
3873 xfs_trans_log_inode(ap->tp, ap->ip, XFS_ILOG_CORE); in xfs_bmap_btalloc()
3880 xfs_trans_mod_dquot_byino(ap->tp, ap->ip, in xfs_bmap_btalloc()
4344 bma->cur = xfs_bmbt_init_cursor(mp, bma->tp, bma->ip, whichfork); in xfs_bmapi_allocate()
4424 bma->cur = xfs_bmbt_init_cursor(bma->ip->i_mount, bma->tp, in xfs_bmapi_convert_unwritten()
4443 error = xfs_bmap_add_extent_unwritten_real(bma->tp, bma->ip, &bma->idx, in xfs_bmapi_convert_unwritten()
4488 struct xfs_trans *tp, /* transaction pointer */ in xfs_bmapi_write() argument
4531 ASSERT(tp != NULL); in xfs_bmapi_write()
4573 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmapi_write()
4584 bma.tp = tp; in xfs_bmapi_write()
4666 error = xfs_bmap_btree_to_extents(tp, ip, bma.cur, in xfs_bmapi_write()
4694 xfs_trans_log_inode(tp, ip, bma.logflags); in xfs_bmapi_write()
4724 xfs_trans_t *tp, /* current transaction pointer */ in xfs_bmap_del_extent() argument
4795 error = xfs_rtfree_extent(tp, bno, (xfs_extlen_t)len); in xfs_bmap_del_extent()
5024 xfs_trans_mod_dquot_byino(tp, ip, qfield, (long)-nblks); in xfs_bmap_del_extent()
5046 xfs_trans_t *tp, /* transaction pointer */ in xfs_bunmapi() argument
5099 (error = xfs_iread_extents(tp, ip, whichfork))) in xfs_bunmapi()
5125 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bunmapi()
5137 xfs_trans_ijoin(tp, mp->m_rbmip, XFS_ILOCK_EXCL); in xfs_bunmapi()
5207 ASSERT(xfs_trans_get_block_res(tp) > 0); in xfs_bunmapi()
5218 error = xfs_bmap_add_extent_unwritten_real(tp, ip, in xfs_bunmapi()
5238 xfs_trans_get_block_res(tp) == 0)) || in xfs_bunmapi()
5276 error = xfs_bmap_add_extent_unwritten_real(tp, in xfs_bunmapi()
5285 error = xfs_bmap_add_extent_unwritten_real(tp, in xfs_bunmapi()
5329 if (!wasdel && xfs_trans_get_block_res(tp) == 0 && in xfs_bunmapi()
5339 error = xfs_bmap_del_extent(ip, tp, &lastx, flist, cur, &del, in xfs_bunmapi()
5369 error = xfs_bmap_extents_to_btree(tp, ip, firstblock, flist, in xfs_bunmapi()
5380 error = xfs_bmap_btree_to_extents(tp, ip, cur, &tmp_logflags, in xfs_bunmapi()
5406 xfs_trans_log_inode(tp, ip, logflags); in xfs_bunmapi()
5651 struct xfs_trans *tp, in xfs_bmap_shift_extents() argument
5695 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_shift_extents()
5701 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_shift_extents()
5795 xfs_trans_log_inode(tp, ip, logflags); in xfs_bmap_shift_extents()
5808 struct xfs_trans *tp, in xfs_bmap_split_extent_at() argument
5842 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_split_extent_at()
5872 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_split_extent_at()
5927 error = xfs_bmap_extents_to_btree(tp, ip, firstfsb, free_list, in xfs_bmap_split_extent_at()
5940 xfs_trans_log_inode(tp, ip, logflags); in xfs_bmap_split_extent_at()
5950 struct xfs_trans *tp; in xfs_bmap_split_extent() local
5956 tp = xfs_trans_alloc(mp, XFS_TRANS_DIOSTRAT); in xfs_bmap_split_extent()
5957 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_write, in xfs_bmap_split_extent()
5960 xfs_trans_cancel(tp); in xfs_bmap_split_extent()
5965 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_bmap_split_extent()
5969 error = xfs_bmap_split_extent_at(tp, ip, split_fsb, in xfs_bmap_split_extent()
5974 error = xfs_bmap_finish(&tp, &free_list, &committed); in xfs_bmap_split_extent()
5978 return xfs_trans_commit(tp); in xfs_bmap_split_extent()
5982 xfs_trans_cancel(tp); in xfs_bmap_split_extent()