Searched refs:cur_trans (Results 1 – 4 of 4) sorted by relevance
| /linux/fs/btrfs/ |
| H A D | transaction.c | 182 struct btrfs_transaction *cur_trans = trans->transaction; in switch_commit_roots() local 190 ASSERT(cur_trans->state == TRANS_STATE_COMMIT_DOING, in switch_commit_roots() 191 "cur_trans->state=%d", cur_trans->state); in switch_commit_roots() 198 list_for_each_entry_safe(root, tmp, &cur_trans->switch_commits, in switch_commit_roots() 208 spin_lock(&cur_trans->dropped_roots_lock); in switch_commit_roots() 209 while (!list_empty(&cur_trans->dropped_roots)) { in switch_commit_roots() 210 root = list_first_entry(&cur_trans->dropped_roots, in switch_commit_roots() 213 spin_unlock(&cur_trans->dropped_roots_lock); in switch_commit_roots() 216 spin_lock(&cur_trans in switch_commit_roots() 273 struct btrfs_transaction *cur_trans; join_transaction() local 485 struct btrfs_transaction *cur_trans = trans->transaction; btrfs_add_dropped_root() local 538 struct btrfs_transaction *cur_trans; wait_current_trans() local 619 struct btrfs_transaction *cur_trans; start_transaction() local 969 struct btrfs_transaction *cur_trans = NULL, *t; btrfs_wait_for_commit() local 1034 struct btrfs_transaction *cur_trans = trans->transaction; btrfs_should_end_transaction() local 1089 struct btrfs_transaction *cur_trans = trans->transaction; __btrfs_end_transaction() local 2024 struct btrfs_transaction *cur_trans; btrfs_commit_transaction_async() local 2069 struct btrfs_transaction *cur_trans = trans->transaction; cleanup_transaction() local 2208 struct btrfs_transaction *cur_trans = trans->transaction; add_pending_snapshot() local 2238 struct btrfs_transaction *cur_trans = trans->transaction; btrfs_commit_transaction() local [all...] |
| H A D | block-group.c | 3546 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_setup_space_cache() local 3549 if (list_empty(&cur_trans->dirty_bgs) || in btrfs_setup_space_cache() 3558 list_for_each_entry_safe(cache, tmp, &cur_trans->dirty_bgs, in btrfs_setup_space_cache() 3583 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_start_dirty_block_groups() local 3588 struct list_head *io = &cur_trans->io_bgs; in btrfs_start_dirty_block_groups() 3591 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups() 3592 if (list_empty(&cur_trans->dirty_bgs)) { in btrfs_start_dirty_block_groups() 3593 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups() 3596 list_splice_init(&cur_trans->dirty_bgs, &dirty); in btrfs_start_dirty_block_groups() 3597 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups() [all …]
|
| H A D | disk-io.c | 4887 void btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans, in btrfs_cleanup_dirty_bgs() argument 4892 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4893 while (!list_empty(&cur_trans->dirty_bgs)) { in btrfs_cleanup_dirty_bgs() 4894 cache = list_first_entry(&cur_trans->dirty_bgs, in btrfs_cleanup_dirty_bgs() 4899 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4902 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4910 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4913 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4915 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4921 while (!list_empty(&cur_trans->io_bgs)) { in btrfs_cleanup_dirty_bgs() [all …]
|
| H A D | extent-tree.c | 2298 struct btrfs_transaction *cur_trans; in check_delayed_ref() local 2303 cur_trans = root->fs_info->running_transaction; in check_delayed_ref() 2304 if (cur_trans) in check_delayed_ref() 2305 refcount_inc(&cur_trans->use_count); in check_delayed_ref() 2307 if (!cur_trans) in check_delayed_ref() 2310 delayed_refs = &cur_trans->delayed_refs; in check_delayed_ref() 2315 btrfs_put_transaction(cur_trans); in check_delayed_ref() 2322 btrfs_put_transaction(cur_trans); in check_delayed_ref() 2338 btrfs_put_transaction(cur_trans); in check_delayed_ref() 2375 btrfs_put_transaction(cur_trans); in check_delayed_ref()
|