From: Jeff Mahoney Date: Fri, 24 Jun 2016 20:37:38 +0000 (-0400) Subject: btrfs: btrfs_relocate_chunk pass extent_root to btrfs_end_transaction X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=05f9a780129c81dfd70ae827a9abb15c7e6321a8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David Sterba --- 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) * chunk tree entries */ ret = btrfs_remove_chunk(trans, root, chunk_offset); - btrfs_end_transaction(trans, root); + btrfs_end_transaction(trans, extent_root); return ret; }