Skip to content

btrfs: clean up zoned device helpers

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10btrfs: add a helper for opening a new device to add to the fsfs/btrfs/dev-replace.c fs/btrfs/volumes.c fs/btrfs/volumes.h+24 -162 replies
2/10btrfs: move btrfs_check_device_zone_type into volumes.cfs/btrfs/volumes.c fs/btrfs/zoned.h+19 -191 reply
3/10btrfs: move btrfs_can_zone_reset into extent-tree.cfs/btrfs/extent-tree.c fs/btrfs/zoned.h+15 -151 reply
4/10btrfs: move btrfs_check_super_location into scrub.cfs/btrfs/scrub.c fs/btrfs/zoned.h+9 -91 reply
5/10btrfs: move btrfs_zoned_meta_io_*lock to extent_io.cfs/btrfs/extent_io.c fs/btrfs/zoned.h+14 -141 reply
6/10btrfs: move btrfs_clear_treelog_bg to extent-tree.cfs/btrfs/extent-tree.c fs/btrfs/zoned.h+14 -131 reply
7/10btrfs: move btrfs_zoned_data_reloc_*lock to extent_io.cfs/btrfs/extent_io.c fs/btrfs/zoned.h+16 -161 reply
8/10btrfs: move btrfs_zoned_bg_is_full into block-group.cfs/btrfs/block-group.c fs/btrfs/block-group.h fs/btrfs/zoned.h+7 -71 reply
9/10btrfs: make the zoned helpers take btrfs_zoned_device_infofs/btrfs/extent-tree.c fs/btrfs/scrub.c fs/btrfs/volumes.c +2 more+29 -271 reply
10/10btrfs: delete btrfs_check_super_location helperfs/btrfs/scrub.c+1 -111 reply

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchJohannes Thumshirn
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10

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 00/10] btrfs: clean up zoned device helpers

Hello,

This is in the same vein as my other cleanups, however zoned has a lot of different patches so I'm sending them as a group, additionally so I get the appropriate review attention from the right people.

These cleanups are aimed at making any helpers inside of zoned.h only derefence structs that are declared inside of zoned.h, which is just btrfs_zoned_device_info. This means moving helpers that aren't used anywhere else into their respective C files, reworking some of the helpers, and other related cleanups. Thanks,

Josef

Josef Bacik (10):
btrfs: add a helper for opening a new device to add to the fs
btrfs: move btrfs_check_device_zone_type into volumes.c
btrfs: move btrfs_can_zone_reset into extent-tree.c
btrfs: move btrfs_check_super_location into scrub.c
btrfs: move btrfs_zoned_meta_io_*lock to extent_io.c
btrfs: move btrfs_clear_treelog_bg to extent-tree.c
btrfs: move btrfs_zoned_data_reloc_*lock to extent_io.c
btrfs: move btrfs_zoned_bg_is_full into block-group.c
btrfs: make the zoned helpers take btrfs_zoned_device_info
btrfs: delete btrfs_check_super_location helper

 fs/btrfs/block-group.c |   6 +++
 fs/btrfs/block-group.h |   1 +
 fs/btrfs/dev-replace.c |  10 +---
 fs/btrfs/extent-tree.c |  27 ++++++++++
 fs/btrfs/extent_io.c   |  30 +++++++++++
 fs/btrfs/scrub.c       |   8 +--
 fs/btrfs/volumes.c     |  49 ++++++++++++++---
 fs/btrfs/volumes.h     |   2 +
 fs/btrfs/zoned.c       |  20 +++----
 fs/btrfs/zoned.h       | 118 +++++------------------------------------
 10 files changed, 136 insertions(+), 135 deletions(-)
Signature · 1 line
2.26.3