diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 104a2e42ed71cf28da186bd5187d704bf5f7cf79..359ac819a8eda65a145dc087e4c4d0ee01fed528 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; }