btrfs: zoned: fix zone activation logic
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs: zoned: move non-changing condition check out of the loopfs/ | +6 | 0 replies | |
| 2/2 | btrfs: zoned: activate block group properly on unlimited active zone devicefs/ | +8 | 0 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.
| Patch | Johannes Thumshirn |
|---|---|
| Series | R-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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