Lines Matching refs:transaction
123 void btrfs_put_transaction(struct btrfs_transaction *transaction) in btrfs_put_transaction() argument
125 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction()
126 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction()
127 BUG_ON(!list_empty(&transaction->list)); in btrfs_put_transaction()
129 &transaction->delayed_refs.href_root.rb_root)); in btrfs_put_transaction()
131 &transaction->delayed_refs.dirty_extent_root)); in btrfs_put_transaction()
132 if (transaction->delayed_refs.pending_csums) in btrfs_put_transaction()
133 btrfs_err(transaction->fs_info, in btrfs_put_transaction()
135 transaction->delayed_refs.pending_csums); in btrfs_put_transaction()
143 while (!list_empty(&transaction->deleted_bgs)) { in btrfs_put_transaction()
146 cache = list_first_entry(&transaction->deleted_bgs, in btrfs_put_transaction()
153 WARN_ON(!list_empty(&transaction->dev_update_list)); in btrfs_put_transaction()
154 kfree(transaction); in btrfs_put_transaction()
160 struct btrfs_transaction *cur_trans = trans->transaction; in switch_commit_roots()
473 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_add_dropped_root()
694 h->transaction = cur_trans; in start_transaction()
927 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_should_end_transaction()
961 struct btrfs_transaction *cur_trans = trans->transaction; in __btrfs_end_transaction()
1164 struct extent_io_tree *dirty_pages = &trans->transaction->dirty_pages; in btrfs_write_and_wait_transaction()
1173 extent_io_tree_release(&trans->transaction->dirty_pages); in btrfs_write_and_wait_transaction()
1233 struct list_head *dirty_bgs = &trans->transaction->dirty_bgs; in commit_cowonly_roots()
1234 struct list_head *io_bgs = &trans->transaction->io_bgs; in commit_cowonly_roots()
1272 &trans->transaction->switch_commits); in commit_cowonly_roots()
1303 &trans->transaction->switch_commits); in commit_cowonly_roots()
1367 &trans->transaction->switch_commits); in commit_fs_roots()
1802 struct list_head *head = &trans->transaction->pending_snapshots; in create_pending_snapshots()
1910 cur_trans = trans->transaction; in btrfs_commit_transaction_async()
1941 struct btrfs_transaction *cur_trans = trans->transaction; in cleanup_transaction()
1977 btrfs_cleanup_one_transaction(trans->transaction, fs_info); in cleanup_transaction()
2038 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_commit_transaction()
2247 WARN_ON(cur_trans != trans->transaction); in btrfs_commit_transaction()