Home
last modified time | relevance | path

Searched refs:cur_trans (Results 1 – 4 of 4) sorted by relevance

/linux/fs/btrfs/
H A Dtransaction.c174 struct btrfs_transaction *cur_trans = trans->transaction; in switch_commit_roots() local
182 ASSERT(cur_trans->state == TRANS_STATE_COMMIT_DOING); in switch_commit_roots()
189 list_for_each_entry_safe(root, tmp, &cur_trans->switch_commits, in switch_commit_roots()
199 spin_lock(&cur_trans->dropped_roots_lock); in switch_commit_roots()
200 while (!list_empty(&cur_trans->dropped_roots)) { in switch_commit_roots()
201 root = list_first_entry(&cur_trans->dropped_roots, in switch_commit_roots()
204 spin_unlock(&cur_trans->dropped_roots_lock); in switch_commit_roots()
207 spin_lock(&cur_trans->dropped_roots_lock); in switch_commit_roots()
209 spin_unlock(&cur_trans->dropped_roots_lock); in switch_commit_roots()
264 struct btrfs_transaction *cur_trans; in join_transaction() local
[all …]
H A Dblock-group.c3315 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_setup_space_cache() local
3318 if (list_empty(&cur_trans->dirty_bgs) || in btrfs_setup_space_cache()
3327 list_for_each_entry_safe(cache, tmp, &cur_trans->dirty_bgs, in btrfs_setup_space_cache()
3353 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_start_dirty_block_groups() local
3358 struct list_head *io = &cur_trans->io_bgs; in btrfs_start_dirty_block_groups()
3361 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups()
3362 if (list_empty(&cur_trans->dirty_bgs)) { in btrfs_start_dirty_block_groups()
3363 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups()
3366 list_splice_init(&cur_trans->dirty_bgs, &dirty); in btrfs_start_dirty_block_groups()
3367 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups()
[all …]
H A Ddisk-io.c4673 void btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans, in btrfs_cleanup_dirty_bgs() argument
4678 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4679 while (!list_empty(&cur_trans->dirty_bgs)) { in btrfs_cleanup_dirty_bgs()
4680 cache = list_first_entry(&cur_trans->dirty_bgs, in btrfs_cleanup_dirty_bgs()
4685 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4688 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4696 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4699 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4701 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
4707 while (!list_empty(&cur_trans->io_bgs)) { in btrfs_cleanup_dirty_bgs()
[all …]
H A Dextent-tree.c2240 struct btrfs_transaction *cur_trans; in check_delayed_ref() local
2245 cur_trans = root->fs_info->running_transaction; in check_delayed_ref()
2246 if (cur_trans) in check_delayed_ref()
2247 refcount_inc(&cur_trans->use_count); in check_delayed_ref()
2249 if (!cur_trans) in check_delayed_ref()
2252 delayed_refs = &cur_trans->delayed_refs; in check_delayed_ref()
2257 btrfs_put_transaction(cur_trans); in check_delayed_ref()
2264 btrfs_put_transaction(cur_trans); in check_delayed_ref()
2280 btrfs_put_transaction(cur_trans); in check_delayed_ref()
2317 btrfs_put_transaction(cur_trans); in check_delayed_ref()