btrfs: don't use extent_root in iterate_extent_inodes
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:42 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:48 +0000 (15:09 +0100)
commit30a9da5d8d494dda15d4b79a8596445140d3aac9
tree77030b2487931c34db1ba8b57324034823c86f08
parentfd51eb2f07c7deb8af97ab699e6239e03aa7c5f6
btrfs: don't use extent_root in iterate_extent_inodes

We are going to have many extent_roots soon, and we don't need a root
here necessarily as we're not modifying anything, we're just getting the
trans handle so we can have an accurate view of references, so use the
tree_root here.

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/backref.c