Skip to content

btrfs-progs: extent tree v2 global root support prep work

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20btrfs-progs: simplify btrfs_make_block_groupkernel-shared/extent-tree.c+16 -272 replies
2/20btrfs-progs: check: don't walk down non fs-trees for qgroup checkcheck/qgroup-verify.c+4 -01 reply
3/20btrfs-progs: filesystem-show: close ctree once we're donecmds/filesystem.c+9 -101 reply
4/20btrfs-progs: add a helper for setting up a root nodekernel-shared/disk-io.c+30 -281 reply
5/20btrfs-progs: btrfs-shared: stop passing root to csum related functionscheck/main.c convert/main.c kernel-shared/ctree.h +2 more+6 -111 reply
6/20btrfs-progs: check: stop passing csum root aroundcheck/main.c+9 -131 reply
7/20btrfs-progs: stop accessing ->csum_root directlybtrfs-corrupt-block.c check/main.c check/mode-common.c +6 more+45 -344 replies
8/20btrfs-progs: image: keep track of seen blocks when walking treesimage/main.c+12 -01 reply
9/20btrfs-progs: common: move btrfs_fix_block_accounting to repair.ccommon/repair.c common/repair.h kernel-shared/extent-tree.c+76 -741 reply
10/20btrfs-progs: check: abstract out the used marking helperscheck/mode-common.c+25 -321 reply
11/20btrfs-progs: check: move btrfs_mark_used_tree_blocks to commoncheck/mode-common.c common/repair.c common/repair.h+108 -1050 replies
12/20btrfs-progs: mark reloc roots as usedcommon/repair.c+0 -43 replies
13/20btrfs-progs: stop accessing ->extent_root directlybtrfs-corrupt-block.c btrfs-map-logical.c btrfstune.c +17 more+179 -1361 reply
14/20btrfs-progs: stop accessing ->free_space_root directlykernel-shared/ctree.h kernel-shared/disk-io.c kernel-shared/free-space-tree.c +1 more+39 -281 reply
15/20btrfs-progs: track csum, extent, and free space trees in a rb treekernel-shared/ctree.h kernel-shared/disk-io.c kernel-shared/disk-io.h +2 more+259 -830 replies
16/20btrfs-progs: check: make reinit work per found root itemcheck/main.c+49 -30 replies
17/20btrfs-progs: check: check the global roots for uptodate root nodescheck/main.c+19 -110 replies
18/20btrfs-progs: check: check all of the csum rootscheck/main.c+23 -30 replies
19/20btrfs-progs: check: fill csum root from all extent rootscheck/main.c+20 -40 replies
20/20btrfs-progs: common: search all extent roots for marking used spacecommon/repair.c common/repair.h+100 -440 replies

Reviews trailers per patch

7 of 20 patches have a Reviewed-by or Acked-by.

PatchQu WenruoAnand Jain
1/20R-b R-b
2/20R-b
3/20R-b
4/20
5/20R-b
6/20R-b
7/20
8/20R-b
9/20
10/20
11/20
12/20R-b
13/20
14/20
15/20
16/20
17/20
18/20
19/20
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/20] btrfs-progs: extent tree v2 global root support prep work

Hello,

This is a series of patches to do all the prep work needed to support extent tree v2. These patches are independent of the actual extent tree v2 support, some of them are fixes, some of them are purely to pave the way for the global root support. These patches are mostly around stopping direct access of ->extent_root/->csum_root/->free_space_root, putting these roots into a rb_tree, and changing the code to look up the roots in the rb_tree instead of accessing them directly. There are a variety of fixes to help make this easier, mostly removing access to these roots that are strictly necessary. Thanks,

Josef

Josef Bacik (20):
btrfs-progs: simplify btrfs_make_block_group
btrfs-progs: check: don't walk down non fs-trees for qgroup check
btrfs-progs: filesystem-show: close ctree once we're done
btrfs-progs: add a helper for setting up a root node
btrfs-progs: btrfs-shared: stop passing root to csum related functions
btrfs-progs: check: stop passing csum root around
btrfs-progs: stop accessing ->csum_root directly
btrfs-progs: image: keep track of seen blocks when walking trees
btrfs-progs: common: move btrfs_fix_block_accounting to repair.c
btrfs-progs: check: abstract out the used marking helpers
btrfs-progs: check: move btrfs_mark_used_tree_blocks to common
btrfs-progs: mark reloc roots as used
btrfs-progs: stop accessing ->extent_root directly
btrfs-progs: stop accessing ->free_space_root directly
btrfs-progs: track csum, extent, and free space trees in a rb tree
btrfs-progs: check: make reinit work per found root item
btrfs-progs: check: check the global roots for uptodate root nodes
btrfs-progs: check: check all of the csum roots
btrfs-progs: check: fill csum root from all extent roots
btrfs-progs: common: search all extent roots for marking used space

 btrfs-corrupt-block.c           |  15 +-
 btrfs-map-logical.c             |   9 +-
 btrfstune.c                     |   2 +-
 check/main.c                    | 223 ++++++++++++++------
 check/mode-common.c             | 132 +-----------
 check/mode-lowmem.c             |  72 ++++---
 check/qgroup-verify.c           |   6 +-
 cmds/filesystem.c               |  19 +-
 cmds/rescue-chunk-recover.c     |  35 ++--
 common/repair.c                 | 230 +++++++++++++++++++++
 common/repair.h                 |   5 +
 convert/main.c                  |   5 +-
 image/main.c                    |  14 +-
 kernel-shared/backref.c         |  10 +-
 kernel-shared/ctree.h           |  10 +-
 kernel-shared/disk-io.c         | 356 +++++++++++++++++++++++---------
 kernel-shared/disk-io.h         |   8 +-
 kernel-shared/extent-tree.c     | 159 ++++----------
 kernel-shared/file-item.c       |   6 +-
 kernel-shared/free-space-tree.c |  54 +++--
 kernel-shared/volumes.c         |   3 +-
 kernel-shared/zoned.c           |   2 +-
 mkfs/main.c                     |  29 ++-
 mkfs/rootdir.c                  |   2 +-
 24 files changed, 892 insertions(+), 514 deletions(-)
Signature · 1 line
2.26.3