Searched refs:cur_trans (Results 1 – 4 of 4) sorted by relevance
/linux/fs/btrfs/ |
H A D | transaction.c | 174 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 D | block-group.c | 3308 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_setup_space_cache() local 3311 if (list_empty(&cur_trans->dirty_bgs) || in btrfs_setup_space_cache() 3320 list_for_each_entry_safe(cache, tmp, &cur_trans->dirty_bgs, in btrfs_setup_space_cache() 3346 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_start_dirty_block_groups() local 3351 struct list_head *io = &cur_trans->io_bgs; in btrfs_start_dirty_block_groups() 3354 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups() 3355 if (list_empty(&cur_trans->dirty_bgs)) { in btrfs_start_dirty_block_groups() 3356 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups() 3359 list_splice_init(&cur_trans->dirty_bgs, &dirty); in btrfs_start_dirty_block_groups() 3360 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups() [all …]
|
H A D | disk-io.c | 4746 void btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans, in btrfs_cleanup_dirty_bgs() argument 4751 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4752 while (!list_empty(&cur_trans->dirty_bgs)) { in btrfs_cleanup_dirty_bgs() 4753 cache = list_first_entry(&cur_trans->dirty_bgs, in btrfs_cleanup_dirty_bgs() 4758 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4761 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4769 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4772 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4774 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4780 while (!list_empty(&cur_trans->io_bgs)) { in btrfs_cleanup_dirty_bgs() [all …]
|
H A D | extent-tree.c | 2210 struct btrfs_transaction *cur_trans; in check_delayed_ref() local 2215 cur_trans = root->fs_info->running_transaction; in check_delayed_ref() 2216 if (cur_trans) in check_delayed_ref() 2217 refcount_inc(&cur_trans->use_count); in check_delayed_ref() 2219 if (!cur_trans) in check_delayed_ref() 2222 delayed_refs = &cur_trans->delayed_refs; in check_delayed_ref() 2227 btrfs_put_transaction(cur_trans); in check_delayed_ref() 2234 btrfs_put_transaction(cur_trans); in check_delayed_ref() 2250 btrfs_put_transaction(cur_trans); in check_delayed_ref() 2287 btrfs_put_transaction(cur_trans); in check_delayed_ref()
|