btrfs: extent tree v2 prep work for global roots
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest25 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/25 | btrfs: kill BTRFS_FS_BARRIERfs/ fs/ | +0 | 1 reply | |
| 2/25 | btrfs: rework async transaction committingfs/ fs/ fs/ +2 more | +18 | 2 replies | |
| 3/25 | btrfs: pass fs_info to trace_btrfs_transaction_commitfs/ fs/ include/ | +8 | 0 replies | |
| 4/25 | btrfs: remove trans_handle->rootfs/ fs/ | +0 | 0 replies | |
| 5/25 | btrfs: pass the root to add_keyed_refsfs/ | +5 | 0 replies | |
| 6/25 | btrfs: move comment in find_parent_nodes()fs/ | +4 | 0 replies | |
| 7/25 | btrfs: remove SANITY_TESTS check form find_parent_nodesfs/ | +0 | 0 replies | |
| 8/25 | btrfs: remove BUG_ON() in find_parent_nodes()fs/ | +6 | 2 replies | |
| 9/25 | btrfs: remove BUG_ON(!eie) in find_parent_nodesfs/ | +11 | 0 replies | |
| 10/25 | btrfs: add a btrfs_block_group_root() helperfs/ fs/ | +15 | 0 replies | |
| 11/25 | btrfs: make remove_extent_backref pass the rootfs/ | +10 | 0 replies | |
| 12/25 | btrfs: use chunk_root in find_free_extent_update_loopfs/ | +1 | 1 reply | |
| 13/25 | btrfs: do not special case the extent root for switch commit rootsfs/ | +2 | 0 replies | |
| 14/25 | btrfs: remove unnecessary extent root check in btrfs_defrag_leavesfs/ | +0 | 0 replies | |
| 15/25 | btrfs: don't use the extent root in btrfs_chunk_alloc_add_chunk_itemfs/ | +1 | 0 replies | |
| 16/25 | btrfs: don't use extent_root in iterate_extent_inodesfs/ | +1 | 0 replies | |
| 17/25 | btrfs: don't use the extent_root in flush_spacefs/ | +1 | 0 replies | |
| 18/25 | btrfs: init root block_rsv at init root timefs/ fs/ fs/ | +32 | 0 replies | |
| 19/25 | btrfs: stop accessing ->extent_root directlyfs/ fs/ fs/ +13 more | +77 | 0 replies | |
| 20/25 | btrfs: fix csum assert to check objectid of the rootfs/ | +1 | 0 replies | |
| 21/25 | btrfs: set BTRFS_FS_STATE_NO_CSUMS if we fail to load the csum rootfs/ fs/ fs/ +2 more | +13 | 1 reply | |
| 22/25 | btrfs: stop accessing ->csum_root directlyfs/ fs/ fs/ +7 more | +60 | 0 replies | |
| 23/25 | btrfs: stop accessing ->free_space_root directlyfs/ fs/ fs/ +1 more | +26 | 0 replies | |
| 24/25 | btrfs: remove useless WARN_ON in record_root_in_transfs/ | +0 | 0 replies | |
| 25/25 | btrfs: track the csum, extent, and free space trees in a rb treefs/ fs/ fs/ +6 more | +264 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/25] btrfs: extent tree v2 prep work for global roots
Hello,
This is the kernel side of the prep work for the extent tree v2 global roots and block group root. There are a few cleanups around getting rid of trans->root to make my life easier. A few BUG_ON() fixes, again mostly just because I was in the area and they were bugging me. The main meat is similar to the work for btrfs-progs, making all users of ->extent_root/->csum_root/->free_space_root to use helpers, and then implementing a rb tree to track these roots and allow the reading of multiples of them. These can be taken without worrying about the extent tree v2 stuff specifically, they all stand on their own. These patches have been through xfstests and fsperf with the rest of the patches to validate they don't break anything. Thanks,
Josef
Josef Bacik (25):
btrfs: kill BTRFS_FS_BARRIER
btrfs: rework async transaction committing
btrfs: pass fs_info to trace_btrfs_transaction_commit
btrfs: remove trans_handle->root
btrfs: pass the root to add_keyed_refs
btrfs: move comment in find_parent_nodes()
btrfs: remove SANITY_TESTS check form find_parent_nodes
btrfs: remove BUG_ON() in find_parent_nodes()
btrfs: remove BUG_ON(!eie) in find_parent_nodes
btrfs: add a btrfs_block_group_root() helper
btrfs: make remove_extent_backref pass the root
btrfs: use chunk_root in find_free_extent_update_loop
btrfs: do not special case the extent root for switch commit roots
btrfs: remove unnecessary extent root check in btrfs_defrag_leaves
btrfs: don't use the extent root in btrfs_chunk_alloc_add_chunk_item
btrfs: don't use extent_root in iterate_extent_inodes
btrfs: don't use the extent_root in flush_space
btrfs: init root block_rsv at init root time
btrfs: stop accessing ->extent_root directly
btrfs: fix csum assert to check objectid of the root
btrfs: set BTRFS_FS_STATE_NO_CSUMS if we fail to load the csum root
btrfs: stop accessing ->csum_root directly
btrfs: stop accessing ->free_space_root directly
btrfs: remove useless WARN_ON in record_root_in_trans
btrfs: track the csum, extent, and free space trees in a rb tree
fs/btrfs/backref.c | 61 +++-- fs/btrfs/block-group.c | 22 +- fs/btrfs/block-rsv.c | 51 +++-- fs/btrfs/block-rsv.h | 1 + fs/btrfs/compression.c | 3 +- fs/btrfs/ctree.h | 15 +- fs/btrfs/disk-io.c | 306 +++++++++++++++++++------ fs/btrfs/disk-io.h | 13 ++ fs/btrfs/extent-tree.c | 72 +++--- fs/btrfs/file-item.c | 9 +- fs/btrfs/free-space-tree.c | 49 ++-- fs/btrfs/inode.c | 15 +- fs/btrfs/ioctl.c | 7 +- fs/btrfs/qgroup.c | 5 +- fs/btrfs/ref-verify.c | 6 +- fs/btrfs/relocation.c | 8 +- fs/btrfs/scrub.c | 13 +- fs/btrfs/space-info.c | 2 +- fs/btrfs/tests/btrfs-tests.c | 1 + fs/btrfs/tests/free-space-tests.c | 5 +- fs/btrfs/tests/free-space-tree-tests.c | 5 +- fs/btrfs/tests/qgroup-tests.c | 5 +- fs/btrfs/transaction.c | 78 ++----- fs/btrfs/transaction.h | 3 +- fs/btrfs/tree-defrag.c | 8 - fs/btrfs/tree-log.c | 19 +- fs/btrfs/volumes.c | 3 +- fs/btrfs/zoned.c | 3 +- include/trace/events/btrfs.h | 10 +- 29 files changed, 513 insertions(+), 285 deletions(-)
Signature · 1 line
2.26.3