Lines Matching refs:cur_trans
4801 void btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans,
4806 spin_lock(&cur_trans->dirty_bgs_lock);
4807 while (!list_empty(&cur_trans->dirty_bgs)) {
4808 cache = list_first_entry(&cur_trans->dirty_bgs,
4813 spin_unlock(&cur_trans->dirty_bgs_lock);
4816 spin_lock(&cur_trans->dirty_bgs_lock);
4824 spin_unlock(&cur_trans->dirty_bgs_lock);
4827 spin_lock(&cur_trans->dirty_bgs_lock);
4829 spin_unlock(&cur_trans->dirty_bgs_lock);
4835 while (!list_empty(&cur_trans->io_bgs)) {
4836 cache = list_first_entry(&cur_trans->io_bgs,
4874 void btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans,
4879 btrfs_cleanup_dirty_bgs(cur_trans, fs_info);
4880 ASSERT(list_empty(&cur_trans->dirty_bgs));
4881 ASSERT(list_empty(&cur_trans->io_bgs));
4883 list_for_each_entry_safe(dev, tmp, &cur_trans->dev_update_list,
4888 btrfs_destroy_delayed_refs(cur_trans, fs_info);
4890 cur_trans->state = TRANS_STATE_COMMIT_START;
4893 cur_trans->state = TRANS_STATE_UNBLOCKED;
4898 btrfs_destroy_marked_extents(fs_info, &cur_trans->dirty_pages,
4900 btrfs_destroy_pinned_extent(fs_info, &cur_trans->pinned_extents);
4904 cur_trans->state =TRANS_STATE_COMPLETED;
4905 wake_up(&cur_trans->commit_wait);