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()
955 init_fn(tp, bp, ip, ifp); in xfs_bmap_local_to_extents()
958 xfs_trans_log_buf(tp, bp, 0, ifp->if_bytes - 1); in xfs_bmap_local_to_extents()
971 xfs_trans_mod_dquot_byino(tp, ip, in xfs_bmap_local_to_extents()
985 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_add_attrfork_btree() argument
1000 cur = xfs_bmbt_init_cursor(mp, tp, ip, XFS_DATA_FORK); in xfs_bmap_add_attrfork_btree()
1028 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_add_attrfork_extents() argument
1040 error = xfs_bmap_extents_to_btree(tp, ip, firstblock, flist, &cur, 0, in xfs_bmap_add_attrfork_extents()
1063 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_add_attrfork_local() argument
1082 dargs.trans = tp; in xfs_bmap_add_attrfork_local()
1087 return xfs_bmap_local_to_extents(tp, ip, firstblock, 1, in xfs_bmap_add_attrfork_local()
1109 xfs_trans_t *tp; /* transaction pointer */ in xfs_bmap_add_attrfork() local
1121 tp = xfs_trans_alloc(mp, XFS_TRANS_ADDAFORK); in xfs_bmap_add_attrfork()
1124 tp->t_flags |= XFS_TRANS_RESERVE; in xfs_bmap_add_attrfork()
1125 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_addafork, blks, 0); in xfs_bmap_add_attrfork()
1127 xfs_trans_cancel(tp, 0); in xfs_bmap_add_attrfork()
1132 error = xfs_trans_reserve_quota_nblks(tp, ip, blks, 0, rsvd ? in xfs_bmap_add_attrfork()
1149 xfs_trans_ijoin(tp, ip, 0); in xfs_bmap_add_attrfork()
1150 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_bmap_add_attrfork()
1181 error = xfs_bmap_add_attrfork_local(tp, ip, &firstblock, &flist, in xfs_bmap_add_attrfork()
1185 error = xfs_bmap_add_attrfork_extents(tp, ip, &firstblock, in xfs_bmap_add_attrfork()
1189 error = xfs_bmap_add_attrfork_btree(tp, ip, &firstblock, &flist, in xfs_bmap_add_attrfork()
1197 xfs_trans_log_inode(tp, ip, logflags); in xfs_bmap_add_attrfork()
1215 xfs_log_sb(tp); in xfs_bmap_add_attrfork()
1218 error = xfs_bmap_finish(&tp, &flist, &committed); in xfs_bmap_add_attrfork()
1221 error = xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); in xfs_bmap_add_attrfork()
1228 xfs_trans_cancel(tp, cancel_flags); in xfs_bmap_add_attrfork()
1245 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_read_extents() argument
1283 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, in xfs_bmap_read_extents()
1294 xfs_trans_brelse(tp, bp); in xfs_bmap_read_extents()
1351 xfs_trans_brelse(tp, bp); in xfs_bmap_read_extents()
1358 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, in xfs_bmap_read_extents()
1369 xfs_trans_brelse(tp, bp); in xfs_bmap_read_extents()
1473 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_first_unused() argument
1497 (error = xfs_iread_extents(tp, ip, whichfork))) in xfs_bmap_first_unused()
1526 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_last_before() argument
1550 (error = xfs_iread_extents(tp, ip, whichfork))) in xfs_bmap_last_before()
1569 struct xfs_trans *tp, in xfs_bmap_last_extent() argument
1580 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_last_extent()
1729 mp = bma->tp ? bma->tp->t_mountp : NULL; in xfs_bmap_add_extent_delay_real()
2021 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
2105 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
2174 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
2223 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_delay_real()
2260 struct xfs_trans *tp, in xfs_bmap_add_extent_unwritten_real() argument
2281 struct xfs_mount *mp = tp->t_mountp; in xfs_bmap_add_extent_unwritten_real()
2759 error = xfs_bmap_extents_to_btree(tp, ip, first, flist, &cur, in xfs_bmap_add_extent_unwritten_real()
2943 mp = bma->tp ? bma->tp->t_mountp : NULL; in xfs_bmap_add_extent_hole_real()
3151 error = xfs_bmap_extents_to_btree(bma->tp, bma->ip, in xfs_bmap_add_extent_hole_real()
3502 struct xfs_trans *tp, in xfs_bmap_longest_free_extent() argument
3507 struct xfs_mount *mp = tp->t_mountp; in xfs_bmap_longest_free_extent()
3514 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, &notinit); 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()
3868 xfs_trans_log_inode(ap->tp, ap->ip, XFS_ILOG_CORE); in xfs_bmap_btalloc()
3875 xfs_trans_mod_dquot_byino(ap->tp, ap->ip, in xfs_bmap_btalloc()
4336 bma->cur = xfs_bmbt_init_cursor(mp, bma->tp, bma->ip, whichfork); in xfs_bmapi_allocate()
4416 bma->cur = xfs_bmbt_init_cursor(bma->ip->i_mount, bma->tp, in xfs_bmapi_convert_unwritten()
4424 error = xfs_bmap_add_extent_unwritten_real(bma->tp, bma->ip, &bma->idx, in xfs_bmapi_convert_unwritten()
4461 struct xfs_trans *tp, /* transaction pointer */ in xfs_bmapi_write() argument
4504 ASSERT(tp != NULL); in xfs_bmapi_write()
4534 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmapi_write()
4545 bma.tp = tp; in xfs_bmapi_write()
4627 error = xfs_bmap_btree_to_extents(tp, ip, bma.cur, in xfs_bmapi_write()
4655 xfs_trans_log_inode(tp, ip, bma.logflags); in xfs_bmapi_write()
4685 xfs_trans_t *tp, /* current transaction pointer */ in xfs_bmap_del_extent() argument
4756 error = xfs_rtfree_extent(tp, bno, (xfs_extlen_t)len); in xfs_bmap_del_extent()
4985 xfs_trans_mod_dquot_byino(tp, ip, qfield, (long)-nblks); in xfs_bmap_del_extent()
5007 xfs_trans_t *tp, /* transaction pointer */ in xfs_bunmapi() argument
5060 (error = xfs_iread_extents(tp, ip, whichfork))) in xfs_bunmapi()
5086 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bunmapi()
5098 xfs_trans_ijoin(tp, mp->m_rbmip, XFS_ILOCK_EXCL); in xfs_bunmapi()
5168 ASSERT(xfs_trans_get_block_res(tp) > 0); in xfs_bunmapi()
5179 error = xfs_bmap_add_extent_unwritten_real(tp, ip, in xfs_bunmapi()
5199 xfs_trans_get_block_res(tp) == 0)) || in xfs_bunmapi()
5237 error = xfs_bmap_add_extent_unwritten_real(tp, in xfs_bunmapi()
5246 error = xfs_bmap_add_extent_unwritten_real(tp, in xfs_bunmapi()
5290 if (!wasdel && xfs_trans_get_block_res(tp) == 0 && in xfs_bunmapi()
5300 error = xfs_bmap_del_extent(ip, tp, &lastx, flist, cur, &del, in xfs_bunmapi()
5330 error = xfs_bmap_extents_to_btree(tp, ip, firstblock, flist, in xfs_bunmapi()
5341 error = xfs_bmap_btree_to_extents(tp, ip, cur, &tmp_logflags, in xfs_bunmapi()
5367 xfs_trans_log_inode(tp, ip, logflags); in xfs_bunmapi()
5612 struct xfs_trans *tp, in xfs_bmap_shift_extents() argument
5656 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_shift_extents()
5662 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_shift_extents()
5756 xfs_trans_log_inode(tp, ip, logflags); in xfs_bmap_shift_extents()
5769 struct xfs_trans *tp, in xfs_bmap_split_extent_at() argument
5803 error = xfs_iread_extents(tp, ip, whichfork); in xfs_bmap_split_extent_at()
5833 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_split_extent_at()
5888 error = xfs_bmap_extents_to_btree(tp, ip, firstfsb, free_list, in xfs_bmap_split_extent_at()
5901 xfs_trans_log_inode(tp, ip, logflags); in xfs_bmap_split_extent_at()
5911 struct xfs_trans *tp; in xfs_bmap_split_extent() local
5917 tp = xfs_trans_alloc(mp, XFS_TRANS_DIOSTRAT); in xfs_bmap_split_extent()
5918 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_write, in xfs_bmap_split_extent()
5921 xfs_trans_cancel(tp, 0); in xfs_bmap_split_extent()
5926 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_bmap_split_extent()
5930 error = xfs_bmap_split_extent_at(tp, ip, split_fsb, in xfs_bmap_split_extent()
5935 error = xfs_bmap_finish(&tp, &free_list, &committed); in xfs_bmap_split_extent()
5939 return xfs_trans_commit(tp, XFS_TRANS_RELEASE_LOG_RES); in xfs_bmap_split_extent()
5943 xfs_trans_cancel(tp, XFS_TRANS_RELEASE_LOG_RES | XFS_TRANS_ABORT); in xfs_bmap_split_extent()