summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2016-06-24 16:37:38 -0400
committerDavid Sterba <dsterba@suse.com>2016-07-26 07:54:25 -0400
commit05f9a780129c81dfd70ae827a9abb15c7e6321a8 (patch)
tree582544564793a2008980874bb348848fca3f22cf
parent1db1ff92b6ce2247999787480c2eeb63a1811e79 (diff)
btrfs: btrfs_relocate_chunk pass extent_root to btrfs_end_transaction
In btrfs_relocate_chunk, we get a transaction handle via btrfs_start_trans_remove_block_group, which starts the transaction using the extent root. When we call btrfs_end_transaction, we're calling it using the chunk root. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 104a2e42ed71..359ac819a8ed 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -2941,7 +2941,7 @@ static int btrfs_relocate_chunk(struct btrfs_root *root, u64 chunk_offset)
2941 * chunk tree entries 2941 * chunk tree entries
2942 */ 2942 */
2943 ret = btrfs_remove_chunk(trans, root, chunk_offset); 2943 ret = btrfs_remove_chunk(trans, root, chunk_offset);
2944 btrfs_end_transaction(trans, root); 2944 btrfs_end_transaction(trans, extent_root);
2945 return ret; 2945 return ret;
2946} 2946}
2947 2947