Skip to content

btrfs: extent tree v2 prep work for global roots

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest25 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25btrfs: kill BTRFS_FS_BARRIERfs/btrfs/ctree.h fs/btrfs/disk-io.c+0 -21 reply
2/25btrfs: rework async transaction committingfs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/ioctl.c +2 more+18 -612 replies
3/25btrfs: pass fs_info to trace_btrfs_transaction_commitfs/btrfs/disk-io.c fs/btrfs/transaction.c include/trace/events/btrfs.h+8 -80 replies
4/25btrfs: remove trans_handle->rootfs/btrfs/transaction.c fs/btrfs/transaction.h+0 -20 replies
5/25btrfs: pass the root to add_keyed_refsfs/btrfs/backref.c+5 -40 replies
6/25btrfs: move comment in find_parent_nodes()fs/btrfs/backref.c+4 -70 replies
7/25btrfs: remove SANITY_TESTS check form find_parent_nodesfs/btrfs/backref.c+0 -40 replies
8/25btrfs: remove BUG_ON() in find_parent_nodes()fs/btrfs/backref.c+6 -12 replies
9/25btrfs: remove BUG_ON(!eie) in find_parent_nodesfs/btrfs/backref.c+11 -30 replies
10/25btrfs: add a btrfs_block_group_root() helperfs/btrfs/block-group.c fs/btrfs/disk-io.h+15 -90 replies
11/25btrfs: make remove_extent_backref pass the rootfs/btrfs/extent-tree.c+10 -80 replies
12/25btrfs: use chunk_root in find_free_extent_update_loopfs/btrfs/extent-tree.c+1 -11 reply
13/25btrfs: do not special case the extent root for switch commit rootsfs/btrfs/transaction.c+2 -60 replies
14/25btrfs: remove unnecessary extent root check in btrfs_defrag_leavesfs/btrfs/tree-defrag.c+0 -80 replies
15/25btrfs: don't use the extent root in btrfs_chunk_alloc_add_chunk_itemfs/btrfs/volumes.c+1 -20 replies
16/25btrfs: don't use extent_root in iterate_extent_inodesfs/btrfs/backref.c+1 -10 replies
17/25btrfs: don't use the extent_root in flush_spacefs/btrfs/space-info.c+1 -10 replies
18/25btrfs: init root block_rsv at init root timefs/btrfs/block-rsv.c fs/btrfs/block-rsv.h fs/btrfs/disk-io.c+32 -230 replies
19/25btrfs: stop accessing ->extent_root directlyfs/btrfs/backref.c fs/btrfs/block-group.c fs/btrfs/block-rsv.c +13 more+77 -440 replies
20/25btrfs: fix csum assert to check objectid of the rootfs/btrfs/file-item.c+1 -10 replies
21/25btrfs: set BTRFS_FS_STATE_NO_CSUMS if we fail to load the csum rootfs/btrfs/compression.c fs/btrfs/ctree.h fs/btrfs/disk-io.c +2 more+13 -41 reply
22/25btrfs: stop accessing ->csum_root directlyfs/btrfs/block-rsv.c fs/btrfs/ctree.h fs/btrfs/disk-io.c +7 more+60 -270 replies
23/25btrfs: stop accessing ->free_space_root directlyfs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/free-space-tree.c +1 more+26 -200 replies
24/25btrfs: remove useless WARN_ON in record_root_in_transfs/btrfs/transaction.c+0 -10 replies
25/25btrfs: track the csum, extent, and free space trees in a rb treefs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/disk-io.h +6 more+264 -801 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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