btrfs: use chunk_root in find_free_extent_update_loop
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:38 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:48 +0000 (15:09 +0100)
commit8e1d02909185bddc76e98e680d7fea38be0e87da
tree50a7a718a41c094f2e73f6e99cd8b2ae48a480bd
parent76d76e789d1f251f66d3bc3bd53e582ca0625622
btrfs: use chunk_root in find_free_extent_update_loop

We're only using this to start the transaction with to possibly allocate
a chunk.  It doesn't really matter which root to use, but with extent
tree v2 we'll need a bytenr to look up a extent root which makes the
usage of the extent_root awkward here.  Simply change it to the
chunk_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/extent-tree.c