btrfs: don't use the extent root in btrfs_chunk_alloc_add_chunk_item
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:41 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:48 +0000 (15:09 +0100)
commitfd51eb2f07c7deb8af97ab699e6239e03aa7c5f6
treed7525fcea4068790ec4c7f9ad26a97352cb32e37
parent3478c732520a01561bb49f8c5d469f02419fd922
btrfs: don't use the extent root in btrfs_chunk_alloc_add_chunk_item

We're just using the extent_root to set the chunk owner to
root_key->objectid, which is BTRFS_EXTENT_TREE_OBJECTID, so use that
directly instead of using the root.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c