Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH v2 00/13] btrfs-progs: extent tree v2 global root support prep work
@ 2021-11-10 20:07 Josef Bacik
  2021-11-10 20:07 ` [PATCH v2 01/13] btrfs-progs: check: fix set_extent_dirty range Josef Bacik
                   ` (13 more replies)
  0 siblings, 14 replies; 16+ messages in thread
From: Josef Bacik @ 2021-11-10 20:07 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

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(-)

-- 
2.26.3


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-11-16  1:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-10 20:07 [PATCH v2 00/13] btrfs-progs: extent tree v2 global root support prep work Josef Bacik
2021-11-10 20:07 ` [PATCH v2 01/13] btrfs-progs: check: fix set_extent_dirty range Josef Bacik
2021-11-10 20:07 ` [PATCH v2 02/13] btrfs-progs: simplify btrfs_make_block_group Josef Bacik
2021-11-10 20:07 ` [PATCH v2 03/13] btrfs-progs: check: don't walk down non fs-trees for qgroup check Josef Bacik
2021-11-10 20:07 ` [PATCH v2 04/13] btrfs-progs: filesystem-show: close ctree once we're done Josef Bacik
2021-11-10 20:07 ` [PATCH v2 05/13] btrfs-progs: add a helper for setting up a root node Josef Bacik
2021-11-10 20:07 ` [PATCH v2 06/13] btrfs-progs: btrfs-shared: stop passing root to csum related functions Josef Bacik
2021-11-15 18:54   ` David Sterba
2021-11-10 20:07 ` [PATCH v2 07/13] btrfs-progs: check: stop passing csum root around Josef Bacik
2021-11-10 20:07 ` [PATCH v2 08/13] btrfs-progs: stop accessing ->csum_root directly Josef Bacik
2021-11-10 20:08 ` [PATCH v2 09/13] btrfs-progs: image: keep track of seen blocks when walking trees Josef Bacik
2021-11-10 20:08 ` [PATCH v2 10/13] btrfs-progs: common: move btrfs_fix_block_accounting to repair.c Josef Bacik
2021-11-10 20:08 ` [PATCH v2 11/13] btrfs-progs: check: abstract out the used marking helpers Josef Bacik
2021-11-10 20:08 ` [PATCH v2 12/13] btrfs-progs: check: move btrfs_mark_used_tree_blocks to common Josef Bacik
2021-11-10 20:08 ` [PATCH v2 13/13] btrfs-progs: mark reloc roots as used Josef Bacik
2021-11-10 20:11 ` [PATCH v2 00/13] btrfs-progs: extent tree v2 global root support prep work Josef Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox