All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/25] btrfs: extent tree v2 prep work for global roots
@ 2021-11-05 20:45 Josef Bacik
  2021-11-05 20:45 ` [PATCH 01/25] btrfs: kill BTRFS_FS_BARRIER Josef Bacik
                   ` (24 more replies)
  0 siblings, 25 replies; 34+ messages in thread
From: Josef Bacik @ 2021-11-05 20:45 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

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

-- 
2.26.3


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

end of thread, other threads:[~2021-11-25 15:07 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05 20:45 [PATCH 00/25] btrfs: extent tree v2 prep work for global roots Josef Bacik
2021-11-05 20:45 ` [PATCH 01/25] btrfs: kill BTRFS_FS_BARRIER Josef Bacik
2021-11-18 11:50   ` David Sterba
2021-11-05 20:45 ` [PATCH 02/25] btrfs: rework async transaction committing Josef Bacik
2021-11-18 12:12   ` David Sterba
2021-11-23 17:19     ` David Sterba
2021-11-05 20:45 ` [PATCH 03/25] btrfs: pass fs_info to trace_btrfs_transaction_commit Josef Bacik
2021-11-05 20:45 ` [PATCH 04/25] btrfs: remove trans_handle->root Josef Bacik
2021-11-05 20:45 ` [PATCH 05/25] btrfs: pass the root to add_keyed_refs Josef Bacik
2021-11-05 20:45 ` [PATCH 06/25] btrfs: move comment in find_parent_nodes() Josef Bacik
2021-11-05 20:45 ` [PATCH 07/25] btrfs: remove SANITY_TESTS check form find_parent_nodes Josef Bacik
2021-11-05 20:45 ` [PATCH 08/25] btrfs: remove BUG_ON() in find_parent_nodes() Josef Bacik
2021-11-23 20:53   ` Nikolay Borisov
2021-11-23 21:35     ` Josef Bacik
2021-11-05 20:45 ` [PATCH 09/25] btrfs: remove BUG_ON(!eie) in find_parent_nodes Josef Bacik
2021-11-05 20:45 ` [PATCH 10/25] btrfs: add a btrfs_block_group_root() helper Josef Bacik
2021-11-05 20:45 ` [PATCH 11/25] btrfs: make remove_extent_backref pass the root Josef Bacik
2021-11-05 20:45 ` [PATCH 12/25] btrfs: use chunk_root in find_free_extent_update_loop Josef Bacik
2021-11-25 10:11   ` Nikolay Borisov
2021-11-05 20:45 ` [PATCH 13/25] btrfs: do not special case the extent root for switch commit roots Josef Bacik
2021-11-05 20:45 ` [PATCH 14/25] btrfs: remove unnecessary extent root check in btrfs_defrag_leaves Josef Bacik
2021-11-05 20:45 ` [PATCH 15/25] btrfs: don't use the extent root in btrfs_chunk_alloc_add_chunk_item Josef Bacik
2021-11-05 20:45 ` [PATCH 16/25] btrfs: don't use extent_root in iterate_extent_inodes Josef Bacik
2021-11-05 20:45 ` [PATCH 17/25] btrfs: don't use the extent_root in flush_space Josef Bacik
2021-11-05 20:45 ` [PATCH 18/25] btrfs: init root block_rsv at init root time Josef Bacik
2021-11-05 20:45 ` [PATCH 19/25] btrfs: stop accessing ->extent_root directly Josef Bacik
2021-11-05 20:45 ` [PATCH 20/25] btrfs: fix csum assert to check objectid of the root Josef Bacik
2021-11-05 20:45 ` [PATCH 21/25] btrfs: set BTRFS_FS_STATE_NO_CSUMS if we fail to load the csum root Josef Bacik
2021-11-25 15:05   ` Nikolay Borisov
2021-11-05 20:45 ` [PATCH 22/25] btrfs: stop accessing ->csum_root directly Josef Bacik
2021-11-05 20:45 ` [PATCH 23/25] btrfs: stop accessing ->free_space_root directly Josef Bacik
2021-11-05 20:45 ` [PATCH 24/25] btrfs: remove useless WARN_ON in record_root_in_trans Josef Bacik
2021-11-05 20:45 ` [PATCH 25/25] btrfs: track the csum, extent, and free space trees in a rb tree Josef Bacik
2021-11-18 12:22   ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.