Skip to content

Remap tree

Mark Harmstone linux-btrfs 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest17 patches 8 repliesIn review
  2. v716 patches 12 repliesSuperseded
  3. v616 patches 6 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v516 patches9 repliesSuperseded
v416 patches24 repliesSuperseded
v317 patches20 repliesSuperseded
v216 patches25 repliesSuperseded

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17btrfs: add definitions and constants for remap-treefs/btrfs/accessors.h fs/btrfs/locking.c fs/btrfs/sysfs.c +5 more+33 -40 replies
2/17btrfs: add METADATA_REMAP chunk typefs/btrfs/block-rsv.c fs/btrfs/block-rsv.h fs/btrfs/disk-io.c +7 more+53 -50 replies
3/17btrfs: allow remapped chunks to have zero stripesfs/btrfs/tree-checker.c fs/btrfs/volumes.c+51 -210 replies
4/17btrfs: remove remapped block groups from the free-space treefs/btrfs/block-group.c fs/btrfs/free-space-cache.c+19 -30 replies
5/17btrfs: don't add metadata items for the remap tree to the extent treefs/btrfs/disk-io.c fs/btrfs/extent-tree.c fs/btrfs/volumes.c+36 -10 replies
6/17btrfs: rename struct btrfs_block_group field commit_used to last_usedfs/btrfs/block-group.c fs/btrfs/block-group.h+14 -140 replies
7/17btrfs: add extended version of struct block_group_itemfs/btrfs/accessors.h fs/btrfs/block-group.c fs/btrfs/block-group.h +3 more+126 -280 replies
8/17btrfs: allow mounting filesystems with remap-tree incompat flagfs/btrfs/Kconfig fs/btrfs/accessors.h fs/btrfs/disk-io.c +4 more+122 -150 replies
9/17btrfs: redirect I/O for remapped block groupsfs/btrfs/relocation.c fs/btrfs/relocation.h fs/btrfs/volumes.c+75 -02 replies
10/17btrfs: handle deletions from remapped block groupfs/btrfs/block-group.c fs/btrfs/block-group.h fs/btrfs/disk-io.c +7 more+678 -551 reply
11/17btrfs: handle setting up relocation of block group with remap-treefs/btrfs/block-group.c fs/btrfs/block-group.h fs/btrfs/free-space-tree.c +5 more+551 -930 replies
12/17btrfs: move existing remaps before relocating block groupfs/btrfs/bio.c fs/btrfs/bio.h fs/btrfs/extent-tree.c +1 more+490 -31 reply
13/17btrfs: replace identity remaps with actual remaps when doing relocationsfs/btrfs/relocation.c+337 -00 replies
14/17btrfs: add do_remap param to btrfs_discard_extent()fs/btrfs/extent-tree.c fs/btrfs/extent-tree.h fs/btrfs/free-space-cache.c +3 more+32 -100 replies
15/17btrfs: allow balancing remap treefs/btrfs/volumes.c+155 -41 reply
16/17btrfs: handle discarding fully-remapped block groupsfs/btrfs/block-group.c fs/btrfs/block-group.h fs/btrfs/discard.c +3 more+107 -200 replies
17/17btrfs: populate fully_remapped_bgs_list on mountfs/btrfs/block-group.c fs/btrfs/block-group.h fs/btrfs/disk-io.c +2 more+112 -00 replies

Reviews trailers per patch

16 of 17 patches have a Reviewed-by or Acked-by.

PatchBoris Burkov
1/17R-b
2/17R-b
3/17R-b
4/17R-b
5/17R-b
6/17
7/17R-b
8/17R-b
9/17R-b
10/17R-b
11/17R-b
12/17R-b
13/17R-b
14/17R-b
15/17R-b
16/17R-b
17/17R-b

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

Read the v8 thread

Cover letter [PATCH v8 00/17] Remap tree

This is version 8 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/[email protected]/
* Version 1: https://lore.kernel.org/all/[email protected]/
* Version 2: https://lore.kernel.org/all/[email protected]/
* Version 3: https://lore.kernel.org/all/[email protected]/
* Version 4: https://lore.kernel.org/all/[email protected]/
* Version 5: https://lore.kernel.org/all/[email protected]/
* Version 6: https://lore.kernel.org/all/[email protected]/
* Version 7: https://lore.kernel.org/all/[email protected]/

Changes since version 7:
* renamed struct btrfs_remap to struct btrfs_remap_item
* renamed BTRFS_BLOCK_GROUP_FLAGS_REMAP to BTRFS_BLOCK_GROUP_FLAGS_METADATA_REMAP
* added unlikelies
* renamed new commit_* fields in struct btrfs_block_group to last_*, and added new patch renaming existing commit_used to last_used to match
* merged do_copy() into copy_remapped_data()
* initialized on-stack struct btrfs_remap_items
* fixed comments
* added other minor changes as suggested by David Sterba

Mark Harmstone (17):
btrfs: add definitions and constants for remap-tree
btrfs: add METADATA_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: rename struct btrfs_block_group field commit_used to last_used
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            |   30 +
 fs/btrfs/bio.c                  |    3 +-
 fs/btrfs/bio.h                  |    3 +
 fs/btrfs/block-group.c          |  323 ++++--
 fs/btrfs/block-group.h          |   29 +-
 fs/btrfs/block-rsv.c            |    9 +
 fs/btrfs/block-rsv.h            |    1 +
 fs/btrfs/discard.c              |   57 +-
 fs/btrfs/disk-io.c              |  130 ++-
 fs/btrfs/extent-tree.c          |  151 ++-
 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           | 1885 +++++++++++++++++++++++++++++--
 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              |  355 +++++-
 fs/btrfs/volumes.h              |   18 +-
 include/uapi/linux/btrfs.h      |    1 +
 include/uapi/linux/btrfs_tree.h |   34 +-
 30 files changed, 2991 insertions(+), 276 deletions(-)
Signature · 1 line
2.51.2