]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa067ebee62ef4818cb7836327d32ba9d58c07e3
tree2adcf680f1dd7eea7b00243ce4a5e59be1ad8528
parent963a62dc89cfa7edc2a80bc2929fb2d7a6ab4471
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