Lines Matching refs:use_count
139 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction()
140 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction()
284 refcount_inc(&cur_trans->use_count); in join_transaction()
344 refcount_set(&cur_trans->use_count, 2); in join_transaction()
522 refcount_inc(&cur_trans->use_count); in wait_current_trans()
580 refcount_inc(&h->use_count); in start_transaction()
581 WARN_ON(refcount_read(&h->use_count) > 2); in start_transaction()
687 refcount_set(&h->use_count, 1); in start_transaction()
876 refcount_inc(&commit->use_count); in wait_for_commit()
896 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
925 refcount_inc(&cur_trans->use_count); in btrfs_wait_for_commit()
994 if (refcount_read(&trans->use_count) > 1) { in __btrfs_end_transaction()
995 refcount_dec(&trans->use_count); in __btrfs_end_transaction()
1962 refcount_inc(&cur_trans->use_count); in btrfs_commit_transaction_async()
1982 WARN_ON(refcount_read(&trans->use_count) > 1); in cleanup_transaction()
2127 ASSERT(refcount_read(&trans->use_count) == 1); in btrfs_commit_transaction()
2194 refcount_inc(&cur_trans->use_count); in btrfs_commit_transaction()
2225 refcount_inc(&prev_trans->use_count); in btrfs_commit_transaction()