Lines Matching defs:trans
1420 if (!ctx->trans) {
1441 if (ctx->trans && likely(ctx->trans->type != __TRANS_DUMMY) &&
1444 * We have a specific time_seq we care about and trans which
1449 delayed_refs = &ctx->trans->transaction->delayed_refs;
1803 if (!ctx->trans && !skip_commit_root_sem)
1806 if (!ctx->trans && !skip_commit_root_sem)
1860 struct btrfs_trans_handle *trans;
1886 trans = btrfs_join_transaction_nostart(root);
1887 if (IS_ERR(trans)) {
1888 if (PTR_ERR(trans) != -ENOENT && PTR_ERR(trans) != -EROFS) {
1889 ret = PTR_ERR(trans);
1892 trans = NULL;
1917 walk_ctx.trans = trans;
2036 if (trans) {
2038 btrfs_end_transaction(trans);
2422 ASSERT(ctx->trans == NULL);
2426 struct btrfs_trans_handle *trans;
2428 trans = btrfs_attach_transaction(ctx->fs_info->tree_root);
2429 if (IS_ERR(trans)) {
2430 if (PTR_ERR(trans) != -ENOENT &&
2431 PTR_ERR(trans) != -EROFS)
2432 return PTR_ERR(trans);
2433 trans = NULL;
2435 ctx->trans = trans;
2438 if (ctx->trans) {
2513 if (ctx->trans) {
2515 btrfs_end_transaction(ctx->trans);
2516 ctx->trans = NULL;
3199 * @trans: Transaction handle.
3205 static int handle_indirect_tree_backref(struct btrfs_trans_handle *trans,
3320 if (btrfs_block_can_be_shared(trans, root, eb))
3368 * @trans: Transaction handle.
3373 int btrfs_backref_add_tree_node(struct btrfs_trans_handle *trans,
3474 ret = handle_indirect_tree_backref(trans, cache, path,