summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/relocation.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
index 0612e260b52a..1c42c5180bdd 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
@@ -3642,12 +3642,7 @@ restart:
btrfs_block_rsv_release(fs_info, rc->block_rsv, (u64)-1, NULL);
/* get rid of pinned extents */
- trans = btrfs_join_transaction(rc->extent_root);
- if (IS_ERR(trans)) {
- err = PTR_ERR(trans);
- goto out_free;
- }
- ret = btrfs_commit_transaction(trans);
+ ret = btrfs_commit_current_transaction(rc->extent_root);
if (ret && !err)
err = ret;
out_free: