Skip to content

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

Josef Bacik linux-btrfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/213 patches 2 repliesIn review
  2. v2 posting 1/220 patches 1 replySuperseded
  3. v122 patches 1 replySuperseded

Changes in v2 from the cover letter

- Added a "btrfs-progs: check: fix set_extent_dirty range" which I discovered when adding the next part of the changes.
- Dropped all of the global root stuff, pushing it into the extent tree v2 specific changes.
- Reworked the super block root helper to take a level as suggested by Qu.

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13btrfs-progs: check: fix set_extent_dirty rangecheck/mode-common.c+4 -20 replies
2/13btrfs-progs: simplify btrfs_make_block_groupkernel-shared/extent-tree.c+16 -270 replies
3/13btrfs-progs: check: don't walk down non fs-trees for qgroup checkcheck/qgroup-verify.c+4 -00 replies
4/13btrfs-progs: filesystem-show: close ctree once we're donecmds/filesystem.c+9 -100 replies
5/13btrfs-progs: add a helper for setting up a root nodekernel-shared/disk-io.c+45 -280 replies
6/13btrfs-progs: btrfs-shared: stop passing root to csum related functionscheck/main.c convert/main.c kernel-shared/ctree.h +2 more+6 -111 reply
7/13btrfs-progs: check: stop passing csum root aroundcheck/main.c+9 -130 replies
8/13btrfs-progs: stop accessing ->csum_root directlybtrfs-corrupt-block.c check/main.c check/mode-common.c +6 more+45 -340 replies
9/13btrfs-progs: image: keep track of seen blocks when walking treesimage/main.c+12 -00 replies
10/13btrfs-progs: common: move btrfs_fix_block_accounting to repair.ccommon/repair.c common/repair.h convert/main.c +1 more+77 -740 replies
11/13btrfs-progs: check: abstract out the used marking helperscheck/mode-common.c+22 -320 replies
12/13btrfs-progs: check: move btrfs_mark_used_tree_blocks to commoncheck/mode-common.c common/repair.c common/repair.h+107 -1040 replies
13/13btrfs-progs: mark reloc roots as usedcommon/repair.c+0 -40 replies

Reviews trailers per patch

6 of 13 patches have a Reviewed-by or Acked-by.

PatchQu WenruoAnand Jain
1/13
2/13R-b R-b
3/13R-b
4/13R-b
5/13
6/13R-b
7/13R-b
8/13
9/13R-b
10/13
11/13
12/13
13/13

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

Read the v2 thread

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

v1->v2:
- Added a "btrfs-progs: check: fix set_extent_dirty range" which I discovered when adding the next part of the changes.
- Dropped all of the global root stuff, pushing it into the extent tree v2 specific changes.
- Reworked the super block root helper to take a level as suggested by Qu.

--- Original email ---

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 (13):
btrfs-progs: check: fix set_extent_dirty range
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-corrupt-block.c       |   2 +-
 check/main.c                |  37 ++++----
 check/mode-common.c         | 124 ++-----------------------
 check/qgroup-verify.c       |   4 +
 cmds/filesystem.c           |  19 ++--
 cmds/rescue-chunk-recover.c |  17 ++--
 common/repair.c             | 176 ++++++++++++++++++++++++++++++++++++
 common/repair.h             |   3 +
 convert/main.c              |   2 +-
 image/main.c                |  12 +++
 kernel-shared/ctree.h       |   8 +-
 kernel-shared/disk-io.c     | 101 +++++++++++++--------
 kernel-shared/disk-io.h     |   2 +-
 kernel-shared/extent-tree.c | 117 ++++--------------------
 kernel-shared/file-item.c   |   6 +-
 mkfs/main.c                 |   3 +-
 mkfs/rootdir.c              |   2 +-
 17 files changed, 326 insertions(+), 309 deletions(-)
Signature · 1 line
2.26.3