Lines Matching refs:transaction
118 void btrfs_put_transaction(struct btrfs_transaction *transaction) in btrfs_put_transaction() argument
120 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction()
121 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction()
122 BUG_ON(!list_empty(&transaction->list)); in btrfs_put_transaction()
124 &transaction->delayed_refs.href_root.rb_root)); in btrfs_put_transaction()
126 &transaction->delayed_refs.dirty_extent_root)); in btrfs_put_transaction()
127 if (transaction->delayed_refs.pending_csums) in btrfs_put_transaction()
128 btrfs_err(transaction->fs_info, in btrfs_put_transaction()
130 transaction->delayed_refs.pending_csums); in btrfs_put_transaction()
138 while (!list_empty(&transaction->deleted_bgs)) { in btrfs_put_transaction()
141 cache = list_first_entry(&transaction->deleted_bgs, in btrfs_put_transaction()
148 WARN_ON(!list_empty(&transaction->dev_update_list)); in btrfs_put_transaction()
149 kfree(transaction); in btrfs_put_transaction()
155 struct btrfs_transaction *cur_trans = trans->transaction; in switch_commit_roots()
464 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_add_dropped_root()
687 h->transaction = cur_trans; in start_transaction()
911 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_should_end_transaction()
946 struct btrfs_transaction *cur_trans = trans->transaction; in __btrfs_end_transaction()
1150 struct extent_io_tree *dirty_pages = &trans->transaction->dirty_pages; in btrfs_write_and_wait_transaction()
1159 extent_io_tree_release(&trans->transaction->dirty_pages); in btrfs_write_and_wait_transaction()
1219 struct list_head *dirty_bgs = &trans->transaction->dirty_bgs; in commit_cowonly_roots()
1220 struct list_head *io_bgs = &trans->transaction->io_bgs; in commit_cowonly_roots()
1266 &trans->transaction->switch_commits); in commit_cowonly_roots()
1288 &trans->transaction->switch_commits); in commit_cowonly_roots()
1352 &trans->transaction->switch_commits); in commit_fs_roots()
1777 struct list_head *head = &trans->transaction->pending_snapshots; in create_pending_snapshots()
1909 cur_trans = trans->transaction; in btrfs_commit_transaction_async()
1940 struct btrfs_transaction *cur_trans = trans->transaction; in cleanup_transaction()
1976 btrfs_cleanup_one_transaction(trans->transaction, fs_info); in cleanup_transaction()
2029 struct list_head *head = &trans->transaction->pending_snapshots; in btrfs_start_delalloc_flush()
2057 struct list_head *head = &trans->transaction->pending_snapshots; in btrfs_wait_delalloc_flush()
2074 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_commit_transaction()
2107 cur_trans = trans->transaction; in btrfs_commit_transaction()
2288 WARN_ON(cur_trans != trans->transaction); in btrfs_commit_transaction()