Skip to content

btrfs: zoned: fix zone activation logic

Naohiro Aota linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: zoned: move non-changing condition check out of the loopfs/btrfs/zoned.c+6 -60 replies
2/2btrfs: zoned: activate block group properly on unlimited active zone devicefs/btrfs/zoned.c+8 -140 replies

Reviews trailers per patch

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

PatchJohannes Thumshirn
SeriesR-b
1/2
2/2

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/2] btrfs: zoned: fix zone activation logic

btrfs_zone_activate() "continue"s on seeing a devie without max_active_zone restriction, and it never set the block group as active if the block group does not contain a device with the restriction.

While it still return true and make the allocation works, it is confusing for other code and it is waste of time to iterate the loop every time btrfs_zone_activate() is called.

Also, there is a non-changing condition check in the loop.

Fix them with this series.

Naohiro Aota (2):
btrfs: zoned: move non-changing condition check out of the loop
btrfs: zoned: activate block group properly on unlimited active zone
device

 fs/btrfs/zoned.c | 34 ++++++++++++++--------------------
 1 file changed, 14 insertions(+), 20 deletions(-)
Signature · 1 line
2.35.1