Lines Matching refs:cur_trans
4752 void btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans,
4757 spin_lock(&cur_trans->dirty_bgs_lock);
4758 while (!list_empty(&cur_trans->dirty_bgs)) {
4759 cache = list_first_entry(&cur_trans->dirty_bgs,
4764 spin_unlock(&cur_trans->dirty_bgs_lock);
4767 spin_lock(&cur_trans->dirty_bgs_lock);
4775 spin_unlock(&cur_trans->dirty_bgs_lock);
4778 spin_lock(&cur_trans->dirty_bgs_lock);
4780 spin_unlock(&cur_trans->dirty_bgs_lock);
4786 while (!list_empty(&cur_trans->io_bgs)) {
4787 cache = list_first_entry(&cur_trans->io_bgs,
4825 void btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans,
4830 btrfs_cleanup_dirty_bgs(cur_trans, fs_info);
4831 ASSERT(list_empty(&cur_trans->dirty_bgs));
4832 ASSERT(list_empty(&cur_trans->io_bgs));
4834 list_for_each_entry_safe(dev, tmp, &cur_trans->dev_update_list,
4839 btrfs_destroy_delayed_refs(cur_trans, fs_info);
4841 cur_trans->state = TRANS_STATE_COMMIT_START;
4844 cur_trans->state = TRANS_STATE_UNBLOCKED;
4849 btrfs_destroy_marked_extents(fs_info, &cur_trans->dirty_pages,
4851 btrfs_destroy_pinned_extent(fs_info, &cur_trans->pinned_extents);
4855 cur_trans->state =TRANS_STATE_COMPLETED;
4856 wake_up(&cur_trans->commit_wait);