Skip to content

btrfs: cleanup and small refactors around __btrfs_map_block()

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6btrfs: remove map_lookup->stripe_lenfs/btrfs/block-group.c fs/btrfs/scrub.c fs/btrfs/tests/extent-map-tests.c +2 more+64 -590 replies
2/6btrfs: reduce div64 calls by limiting the number of stripes of a chunk to u32fs/btrfs/block-group.c fs/btrfs/scrub.c fs/btrfs/tree-checker.c +1 more+63 -421 reply
3/6btrfs: simplify the bioc argument for handle_ops_on_dev_replace()fs/btrfs/volumes.c+2 -40 replies
4/6btrfs: reduce type width of btrfs_io_contextsfs/btrfs/volumes.c fs/btrfs/volumes.h+58 -120 replies
5/6btrfs: use a more space efficient way to represent the source of duplicated stripesfs/btrfs/raid56.c fs/btrfs/scrub.c fs/btrfs/volumes.c +1 more+119 -1150 replies
6/6btrfs: replace btrfs_io_context::raid_map with a fixed u64 valuefs/btrfs/raid56.c fs/btrfs/scrub.c fs/btrfs/volumes.c +2 more+78 -840 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchJohannes ThumshirnChristoph HellwigAnand JainDavid Sterba
1/6R-b R-b
2/6
3/6R-b R-b R-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/6] btrfs: cleanup and small refactors around __btrfs_map_block()

This series is based on the current misc-next branch, and can be fetched from github:

https://github.com/adam900710/linux/tree/map_block_refactor

This is the rebased and merged version of two patchset:

btrfs: reduce div64 calls for __btrfs_map_block() and its variants
btrfs: reduce the memory usage for btrfs_io_context, and reduce its variable sized members

Originally the 2nd patchset has some dependency on the first one, but the first one is causing some conflicts with newer cleanups, thus only the 2nd patchset get merged into for-next.

This updated version would resolve the conflicts, and use the modified version from for-next.

Qu Wenruo (6):
btrfs: remove map_lookup->stripe_len
btrfs: reduce div64 calls by limiting the number of stripes of a chunk

    to u32

btrfs: simplify the bioc argument for handle_ops_on_dev_replace()
btrfs: reduce type width of btrfs_io_contexts
btrfs: use a more space efficient way to represent the source of
duplicated stripes
btrfs: replace btrfs_io_context::raid_map with a fixed u64 value

 fs/btrfs/block-group.c            |  22 +-
 fs/btrfs/raid56.c                 |  68 ++++--
 fs/btrfs/scrub.c                  |  85 +++----
 fs/btrfs/tests/extent-map-tests.c |   1 -
 fs/btrfs/tree-checker.c           |  14 ++
 fs/btrfs/volumes.c                | 385 ++++++++++++++----------------
 fs/btrfs/volumes.h                |  79 +++++-
 include/trace/events/btrfs.h      |   2 +-
 8 files changed, 362 insertions(+), 294 deletions(-)
Signature · 1 line
2.39.1