Skip to content

btrfs: add a btrfs_chunk_map structure and preparatory cleanups

[email protected] linux-btrfs oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8btrfs: fix off-by-one when checking chunk map includes logical addressfs/btrfs/volumes.c+1 -10 replies
2/8btrfs: make error messages more clear when getting a chunk mapfs/btrfs/volumes.c+4 -30 replies
3/8btrfs: mark sanity checks when getting chunk map as unlikelyfs/btrfs/volumes.c+2 -20 replies
4/8btrfs: split assert into two different asserts when removing block groupfs/btrfs/block-group.c+2 -10 replies
5/8btrfs: unexport extent_map_block_end()fs/btrfs/extent_map.c fs/btrfs/extent_map.h+7 -70 replies
6/8btrfs: use btrfs_next_item() at scrub.c:find_first_extent_item()fs/btrfs/scrub.c+5 -80 replies
7/8btrfs: use a dedicated data structure for chunk mapsfs/btrfs/block-group.c fs/btrfs/block-group.h fs/btrfs/dev-replace.c +14 more+501 -4886 replies
8/8btrfs: remove stripe size local variable from insert_dev_extents()fs/btrfs/block-group.c+1 -40 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJosef Bacik
SeriesR-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v1 thread

Cover letter [PATCH 0/8] btrfs: add a btrfs_chunk_map structure and preparatory cleanups

From: Filipe Manana <[email protected]>

The following are some cleanups and introducing a dedicated data structure for representing chunk maps, in order to make code simpler and use less memory - this is achieved in patch 7/8. This patchset is also preparatory work for some upcoming changes to extent maps.

Filipe Manana (8):
btrfs: fix off-by-one when checking chunk map includes logical address
btrfs: make error messages more clear when getting a chunk map
btrfs: mark sanity checks when getting chunk map as unlikely
btrfs: split assert into two different asserts when removing block group
btrfs: unexport extent_map_block_end()
btrfs: use btrfs_next_item() at scrub.c:find_first_extent_item()
btrfs: use a dedicated data structure for chunk maps
btrfs: remove stripe size local variable from insert_dev_extents()

 fs/btrfs/block-group.c            | 167 ++++-----
 fs/btrfs/block-group.h            |   6 +-
 fs/btrfs/dev-replace.c            |  28 +-
 fs/btrfs/disk-io.c                |   7 +-
 fs/btrfs/extent_map.c             |  53 +--
 fs/btrfs/extent_map.h             |  11 -
 fs/btrfs/fs.h                     |   3 +-
 fs/btrfs/inode.c                  |  25 +-
 fs/btrfs/raid56.h                 |   2 +-
 fs/btrfs/scrub.c                  |  52 ++-
 fs/btrfs/tests/btrfs-tests.c      |   3 +-
 fs/btrfs/tests/btrfs-tests.h      |   1 +
 fs/btrfs/tests/extent-map-tests.c |  40 +--
 fs/btrfs/volumes.c                | 545 ++++++++++++++++++------------
 fs/btrfs/volumes.h                |  45 ++-
 fs/btrfs/zoned.c                  |  24 +-
 include/trace/events/btrfs.h      |  11 +-
 17 files changed, 516 insertions(+), 507 deletions(-)
Signature · 1 line
2.40.1