Lines Matching refs:transaction

894 	delayed_refs = &trans->transaction->delayed_refs;  in btrfs_lookup_extent_info()
2468 delayed_refs = &trans->transaction->delayed_refs; in __btrfs_run_delayed_refs()
2762 u64 num_heads = trans->transaction->delayed_refs.num_heads_ready; in btrfs_check_space_for_delayed_refs()
2763 u64 csum_bytes = trans->transaction->delayed_refs.pending_csums; in btrfs_check_space_for_delayed_refs()
2764 u64 num_dirty_bgs = trans->transaction->num_dirty_bgs; in btrfs_check_space_for_delayed_refs()
2799 atomic_read(&trans->transaction->delayed_refs.num_entries); in btrfs_should_throttle_delayed_refs()
2916 delayed_refs = &trans->transaction->delayed_refs; in btrfs_run_delayed_refs()
3014 delayed_refs = &trans->transaction->delayed_refs; in check_delayed_ref()
3420 if (test_bit(BTRFS_TRANS_CACHE_ENOSPC, &trans->transaction->flags)) { in cache_save_setup()
3456 set_bit(BTRFS_TRANS_CACHE_ENOSPC, &trans->transaction->flags); in cache_save_setup()
3477 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_setup_space_cache()
3515 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_start_dirty_block_groups()
3550 mutex_lock(&trans->transaction->cache_write_mutex); in btrfs_start_dirty_block_groups()
3642 mutex_unlock(&trans->transaction->cache_write_mutex); in btrfs_start_dirty_block_groups()
3643 mutex_lock(&trans->transaction->cache_write_mutex); in btrfs_start_dirty_block_groups()
3645 mutex_unlock(&trans->transaction->cache_write_mutex); in btrfs_start_dirty_block_groups()
3675 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_write_dirty_block_groups()
4099 &trans->transaction->flags) || in btrfs_alloc_data_chunk_ondemand()
5923 spin_lock(&trans->transaction->dirty_bgs_lock); in update_block_group()
5926 &trans->transaction->dirty_bgs); in update_block_group()
5927 trans->transaction->num_dirty_bgs++; in update_block_group()
5930 spin_unlock(&trans->transaction->dirty_bgs_lock); in update_block_group()
6366 deleted_bgs = &trans->transaction->deleted_bgs; in btrfs_finish_extent_commit()
6693 delayed_refs = &trans->transaction->delayed_refs; in check_ref_cleanup()
7856 set_extent_dirty(&trans->transaction->dirty_pages, buf->start, in btrfs_init_new_buffer()
8132 delayed_refs = &trans->transaction->delayed_refs; in record_one_subtree_extent()
9179 if (test_bit(BTRFS_TRANS_DIRTY_BG_RUN, &trans->transaction->flags)) { in btrfs_inc_block_group_ro()
10068 mutex_lock(&trans->transaction->cache_write_mutex); in btrfs_remove_block_group()
10073 spin_lock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group()
10079 spin_unlock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group()
10084 spin_lock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group()
10091 spin_unlock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group()
10092 mutex_unlock(&trans->transaction->cache_write_mutex); in btrfs_remove_block_group()
10184 spin_lock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group()
10191 spin_unlock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group()
10493 &trans->transaction->deleted_bgs); in btrfs_delete_unused_bgs()