diff options
| author | Josef Bacik <[email protected]> | 2021-11-05 20:45:51 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-01-03 14:09:50 +0000 |
| commit | abed4aaae4f71a7bcdbe90a65319b6e772a2689d (patch) | |
| tree | 29786ead465fab93bcd5bbe5ae4cec7fd02cb8d6 /fs/btrfs/tests/btrfs-tests.c | |
| parent | btrfs: remove useless WARN_ON in record_root_in_trans (diff) | |
| download | kernel-abed4aaae4f71a7bcdbe90a65319b6e772a2689d.tar.gz kernel-abed4aaae4f71a7bcdbe90a65319b6e772a2689d.zip | |
btrfs: track the csum, extent, and free space trees in a rb tree
In the future we are going to have multiple copies of these trees. To
facilitate this we need a way to lookup the different roots we are
looking for. Handle this by adding a global root rb tree that is
indexed on the root->root_key. Then instead of loading the roots at
mount time with individually targeted keys, simply search the tree_root
for anything with the specific objectid we want. This will make it
straightforward to support both old style and new style file systems.
Signed-off-by: Josef Bacik <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tests/btrfs-tests.c')
| -rw-r--r-- | fs/btrfs/tests/btrfs-tests.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/tests/btrfs-tests.c b/fs/btrfs/tests/btrfs-tests.c index 3a4099a2bf05..d8e56edd6991 100644 --- a/fs/btrfs/tests/btrfs-tests.c +++ b/fs/btrfs/tests/btrfs-tests.c @@ -204,6 +204,7 @@ void btrfs_free_dummy_root(struct btrfs_root *root) /* Will be freed by btrfs_free_fs_roots */ if (WARN_ON(test_bit(BTRFS_ROOT_IN_RADIX, &root->state))) return; + btrfs_global_root_delete(root); btrfs_put_root(root); } |
