Lines Matching refs:cur_trans
4670 void btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans,
4675 spin_lock(&cur_trans->dirty_bgs_lock);
4676 while (!list_empty(&cur_trans->dirty_bgs)) {
4677 cache = list_first_entry(&cur_trans->dirty_bgs,
4682 spin_unlock(&cur_trans->dirty_bgs_lock);
4685 spin_lock(&cur_trans->dirty_bgs_lock);
4693 spin_unlock(&cur_trans->dirty_bgs_lock);
4696 spin_lock(&cur_trans->dirty_bgs_lock);
4698 spin_unlock(&cur_trans->dirty_bgs_lock);
4704 while (!list_empty(&cur_trans->io_bgs)) {
4705 cache = list_first_entry(&cur_trans->io_bgs,
4717 void btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans,
4722 btrfs_cleanup_dirty_bgs(cur_trans, fs_info);
4723 ASSERT(list_empty(&cur_trans->dirty_bgs));
4724 ASSERT(list_empty(&cur_trans->io_bgs));
4726 list_for_each_entry_safe(dev, tmp, &cur_trans->dev_update_list,
4731 btrfs_destroy_delayed_refs(cur_trans, fs_info);
4733 cur_trans->state = TRANS_STATE_COMMIT_START;
4736 cur_trans->state = TRANS_STATE_UNBLOCKED;
4741 btrfs_destroy_marked_extents(fs_info, &cur_trans->dirty_pages,
4743 btrfs_destroy_pinned_extent(fs_info, &cur_trans->pinned_extents);
4745 cur_trans->state =TRANS_STATE_COMPLETED;
4746 wake_up(&cur_trans->commit_wait);