public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/8] btrfs-progs: extent tree v2 global root support prep work
@ 2021-12-01 18:15 Josef Bacik
  2021-12-01 18:15 ` [PATCH v3 1/8] btrfs-progs: stop accessing ->extent_root directly Josef Bacik
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Josef Bacik @ 2021-12-01 18:15 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

v2->v3:
- rebased onto origin/devel, these somehow got missed when merging the series.

v1->v2:
- reworked the root node helper thing to check the level as well as per Qu's
  suggestion.
- Fixed a place where we weren't inluding common/repair.h to get a helper that I
  moved (not entirely sure how this still built but whatever.)
- Fixed a place where I could get fs_info from an eb instead of passing it
  around.

--- 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 (8):
  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           |  13 +-
 btrfs-map-logical.c             |   9 +-
 btrfstune.c                     |   2 +-
 check/main.c                    | 202 ++++++++++++++++------
 check/mode-common.c             |   8 +-
 check/mode-lowmem.c             |  72 ++++----
 check/qgroup-verify.c           |   2 +-
 cmds/rescue-chunk-recover.c     |  18 +-
 common/repair.c                 | 143 ++++++++++-----
 common/repair.h                 |   2 +
 convert/main.c                  |   4 +-
 image/main.c                    |   2 +-
 kernel-shared/backref.c         |  10 +-
 kernel-shared/ctree.h           |   4 +-
 kernel-shared/disk-io.c         | 296 +++++++++++++++++++++++++-------
 kernel-shared/disk-io.h         |   6 +
 kernel-shared/extent-tree.c     |  42 +++--
 kernel-shared/free-space-tree.c |  54 ++++--
 kernel-shared/volumes.c         |   3 +-
 kernel-shared/zoned.c           |   2 +-
 mkfs/main.c                     |  30 ++--
 21 files changed, 651 insertions(+), 273 deletions(-)

-- 
2.26.3


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

end of thread, other threads:[~2021-12-01 18:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-01 18:15 [PATCH v3 0/8] btrfs-progs: extent tree v2 global root support prep work Josef Bacik
2021-12-01 18:15 ` [PATCH v3 1/8] btrfs-progs: stop accessing ->extent_root directly Josef Bacik
2021-12-01 18:15 ` [PATCH v3 2/8] btrfs-progs: stop accessing ->free_space_root directly Josef Bacik
2021-12-01 18:15 ` [PATCH v3 3/8] btrfs-progs: track csum, extent, and free space trees in a rb tree Josef Bacik
2021-12-01 18:15 ` [PATCH v3 4/8] btrfs-progs: check: make reinit work per found root item Josef Bacik
2021-12-01 18:15 ` [PATCH v3 5/8] btrfs-progs: check: check the global roots for uptodate root nodes Josef Bacik
2021-12-01 18:15 ` [PATCH v3 6/8] btrfs-progs: check: check all of the csum roots Josef Bacik
2021-12-01 18:15 ` [PATCH v3 7/8] btrfs-progs: check: fill csum root from all extent roots Josef Bacik
2021-12-01 18:15 ` [PATCH v3 8/8] btrfs-progs: common: search all extent roots for marking used space Josef Bacik

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