public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 00/16] Remap tree
@ 2025-11-24 18:52 Mark Harmstone
  2025-11-24 18:52 ` [PATCH v7 01/16] btrfs: add definitions and constants for remap-tree Mark Harmstone
                   ` (15 more replies)
  0 siblings, 16 replies; 29+ messages in thread
From: Mark Harmstone @ 2025-11-24 18:52 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Mark Harmstone

This is version 7 of the patch series for the new logical remapping tree
feature - see the previous cover letters for more information including
the rationale:

* RFC: https://lore.kernel.org/all/20250515163641.3449017-1-maharmstone@fb.com/
* Version 1: https://lore.kernel.org/all/20250605162345.2561026-1-maharmstone@fb.com/
* Version 2: https://lore.kernel.org/all/20250813143509.31073-1-mark@harmstone.com/
* Version 3: https://lore.kernel.org/all/20251009112814.13942-1-mark@harmstone.com/
* Version 4: https://lore.kernel.org/all/20251024181227.32228-1-mark@harmstone.com/
* Version 5: https://lore.kernel.org/all/20251110171511.20900-1-mark@harmstone.com/
* Version 6: https://lore.kernel.org/all/20251114184745.9304-1-mark@harmstone.com/

Changes since version 6:
* Added new function btrfs_complete_bg_remapping(), to dedupe some code
  in btrfs_handle_fully_remapped_bgs() and
  btrfs_trim_fully_remapped_block_group()
* Rearranged some code in create_remap_tree_entries() to make things
  clearer

Mark Harmstone (16):
  btrfs: add definitions and constants for remap-tree
  btrfs: add REMAP chunk type
  btrfs: allow remapped chunks to have zero stripes
  btrfs: remove remapped block groups from the free-space tree
  btrfs: don't add metadata items for the remap tree to the extent tree
  btrfs: add extended version of struct block_group_item
  btrfs: allow mounting filesystems with remap-tree incompat flag
  btrfs: redirect I/O for remapped block groups
  btrfs: handle deletions from remapped block group
  btrfs: handle setting up relocation of block group with remap-tree
  btrfs: move existing remaps before relocating block group
  btrfs: replace identity remaps with actual remaps when doing
    relocations
  btrfs: add do_remap param to btrfs_discard_extent()
  btrfs: allow balancing remap tree
  btrfs: handle discarding fully-remapped block groups
  btrfs: populate fully_remapped_bgs_list on mount

 fs/btrfs/Kconfig                |    2 +
 fs/btrfs/accessors.h            |   29 +
 fs/btrfs/bio.c                  |    3 +-
 fs/btrfs/bio.h                  |    3 +
 fs/btrfs/block-group.c          |  306 ++++-
 fs/btrfs/block-group.h          |   25 +-
 fs/btrfs/block-rsv.c            |    8 +
 fs/btrfs/block-rsv.h            |    1 +
 fs/btrfs/discard.c              |   57 +-
 fs/btrfs/disk-io.c              |  125 +-
 fs/btrfs/extent-tree.c          |  152 ++-
 fs/btrfs/extent-tree.h          |    4 +-
 fs/btrfs/free-space-cache.c     |   59 +-
 fs/btrfs/free-space-cache.h     |    1 +
 fs/btrfs/free-space-tree.c      |    4 +-
 fs/btrfs/free-space-tree.h      |    5 +-
 fs/btrfs/fs.h                   |   10 +-
 fs/btrfs/inode.c                |    2 +-
 fs/btrfs/locking.c              |    1 +
 fs/btrfs/relocation.c           | 1889 +++++++++++++++++++++++++++++--
 fs/btrfs/relocation.h           |   18 +
 fs/btrfs/space-info.c           |   22 +-
 fs/btrfs/sysfs.c                |    4 +
 fs/btrfs/transaction.c          |    7 +
 fs/btrfs/tree-checker.c         |   94 +-
 fs/btrfs/tree-checker.h         |    5 +
 fs/btrfs/volumes.c              |  356 +++++-
 fs/btrfs/volumes.h              |   18 +-
 include/uapi/linux/btrfs.h      |    1 +
 include/uapi/linux/btrfs_tree.h |   29 +-
 30 files changed, 2977 insertions(+), 263 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2026-01-06 18:28 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-24 18:52 [PATCH v7 00/16] Remap tree Mark Harmstone
2025-11-24 18:52 ` [PATCH v7 01/16] btrfs: add definitions and constants for remap-tree Mark Harmstone
2025-12-19  1:21   ` David Sterba
2025-11-24 18:52 ` [PATCH v7 02/16] btrfs: add REMAP chunk type Mark Harmstone
2025-12-19  1:27   ` David Sterba
2025-11-24 18:52 ` [PATCH v7 03/16] btrfs: allow remapped chunks to have zero stripes Mark Harmstone
2025-11-24 18:52 ` [PATCH v7 04/16] btrfs: remove remapped block groups from the free-space tree Mark Harmstone
2025-11-24 18:52 ` [PATCH v7 05/16] btrfs: don't add metadata items for the remap tree to the extent tree Mark Harmstone
2025-11-24 18:52 ` [PATCH v7 06/16] btrfs: add extended version of struct block_group_item Mark Harmstone
2025-11-24 18:52 ` [PATCH v7 07/16] btrfs: allow mounting filesystems with remap-tree incompat flag Mark Harmstone
2025-11-24 18:53 ` [PATCH v7 08/16] btrfs: redirect I/O for remapped block groups Mark Harmstone
2025-11-24 18:53 ` [PATCH v7 09/16] btrfs: handle deletions from remapped block group Mark Harmstone
2025-11-25 15:59   ` Boris Burkov
2025-11-25 16:06   ` Boris Burkov
2025-12-19  1:45   ` David Sterba
2025-11-24 18:53 ` [PATCH v7 10/16] btrfs: handle setting up relocation of block group with remap-tree Mark Harmstone
2025-12-19  1:56   ` David Sterba
2026-01-06 12:20     ` Mark Harmstone
2025-11-24 18:53 ` [PATCH v7 11/16] btrfs: move existing remaps before relocating block group Mark Harmstone
2025-12-19  2:07   ` David Sterba
2026-01-06 18:28     ` Mark Harmstone
2025-11-24 18:53 ` [PATCH v7 12/16] btrfs: replace identity remaps with actual remaps when doing relocations Mark Harmstone
2025-11-24 18:53 ` [PATCH v7 13/16] btrfs: add do_remap param to btrfs_discard_extent() Mark Harmstone
2025-11-24 18:53 ` [PATCH v7 14/16] btrfs: allow balancing remap tree Mark Harmstone
2025-12-19  2:12   ` David Sterba
2025-11-24 18:53 ` [PATCH v7 15/16] btrfs: handle discarding fully-remapped block groups Mark Harmstone
2025-11-25 16:02   ` Boris Burkov
2025-11-24 18:53 ` [PATCH v7 16/16] btrfs: populate fully_remapped_bgs_list on mount Mark Harmstone
2025-11-27  8:37   ` Boris Burkov

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