OSDN Git Service

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

We only need the root to start a transaction, and since it's a global
root we can pick anything, change to the tree_root as we'll have a lot
of extent roots in the future.

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/space-info.c