Lines Matching refs:trans
48 struct xfs_trans **trans, in xfs_attr3_leaf_freextent() argument
91 bp = xfs_trans_get_buf(*trans, in xfs_attr3_leaf_freextent()
96 xfs_trans_binval(*trans, bp); in xfs_attr3_leaf_freextent()
100 error = xfs_trans_roll(trans, dp); in xfs_attr3_leaf_freextent()
120 struct xfs_trans **trans, in xfs_attr3_leaf_inactive() argument
158 xfs_trans_brelse(*trans, bp); in xfs_attr3_leaf_inactive()
185 xfs_trans_brelse(*trans, bp); /* unlock for trans. in freextent() */ in xfs_attr3_leaf_inactive()
192 tmp = xfs_attr3_leaf_freextent(trans, dp, in xfs_attr3_leaf_inactive()
209 struct xfs_trans **trans, in xfs_attr3_node_inactive() argument
227 xfs_trans_brelse(*trans, bp); /* no locks for later trans */ in xfs_attr3_node_inactive()
235 xfs_trans_brelse(*trans, bp); in xfs_attr3_node_inactive()
240 xfs_trans_brelse(*trans, bp); /* no locks for later trans */ in xfs_attr3_node_inactive()
254 error = xfs_da3_node_read(*trans, dp, child_fsb, -2, &child_bp, in xfs_attr3_node_inactive()
269 error = xfs_attr3_node_inactive(trans, dp, in xfs_attr3_node_inactive()
274 error = xfs_attr3_leaf_inactive(trans, dp, in xfs_attr3_node_inactive()
279 xfs_trans_brelse(*trans, child_bp); in xfs_attr3_node_inactive()
289 error = xfs_da_get_buf(*trans, dp, 0, child_blkno, in xfs_attr3_node_inactive()
293 xfs_trans_binval(*trans, child_bp); in xfs_attr3_node_inactive()
301 error = xfs_da3_node_read(*trans, dp, 0, parent_blkno, in xfs_attr3_node_inactive()
306 xfs_trans_brelse(*trans, bp); in xfs_attr3_node_inactive()
311 error = xfs_trans_roll(trans, dp); in xfs_attr3_node_inactive()
327 struct xfs_trans **trans, in xfs_attr3_root_inactive() argument
341 error = xfs_da3_node_read(*trans, dp, 0, -1, &bp, XFS_ATTR_FORK); in xfs_attr3_root_inactive()
354 error = xfs_attr3_node_inactive(trans, dp, bp, 1); in xfs_attr3_root_inactive()
358 error = xfs_attr3_leaf_inactive(trans, dp, bp); in xfs_attr3_root_inactive()
362 xfs_trans_brelse(*trans, bp); in xfs_attr3_root_inactive()
371 error = xfs_da_get_buf(*trans, dp, 0, blkno, &bp, XFS_ATTR_FORK); in xfs_attr3_root_inactive()
374 xfs_trans_binval(*trans, bp); /* remove from cache */ in xfs_attr3_root_inactive()
378 error = xfs_trans_roll(trans, dp); in xfs_attr3_root_inactive()
395 struct xfs_trans *trans; in xfs_attr_inactive() local
419 trans = xfs_trans_alloc(mp, XFS_TRANS_ATTRINVAL); in xfs_attr_inactive()
420 error = xfs_trans_reserve(trans, &M_RES(mp)->tr_attrinval, 0, 0); in xfs_attr_inactive()
434 xfs_trans_ijoin(trans, dp, 0); in xfs_attr_inactive()
444 error = xfs_attr3_root_inactive(&trans, dp); in xfs_attr_inactive()
448 error = xfs_itruncate_extents(&trans, dp, XFS_ATTR_FORK, 0); in xfs_attr_inactive()
454 xfs_attr_fork_remove(dp, trans); in xfs_attr_inactive()
456 error = xfs_trans_commit(trans); in xfs_attr_inactive()
461 xfs_trans_cancel(trans); in xfs_attr_inactive()