diff options
author | Naohiro Aota <[email protected]> | 2023-04-18 17:45:24 +0900 |
---|---|---|
committer | David Sterba <[email protected]> | 2023-04-28 17:17:25 +0200 |
commit | 631003e2333c12cc1b52df06a707365b7363a159 (patch) | |
tree | 20819a7556997516a417f69bde1d2e383b38884d /tools/testing/selftests/net/lib/py/utils.py | |
parent | 64b5d5b2852661284ccbb038c697562cc56231bf (diff) |
btrfs: zoned: fix wrong use of bitops API in btrfs_ensure_empty_zones
find_next_bit and find_next_zero_bit take @size as the second parameter and
@offset as the third parameter. They are specified opposite in
btrfs_ensure_empty_zones(). Thanks to the later loop, it never failed to
detect the empty zones. Fix them and (maybe) return the result a bit
faster.
Note: the naming is a bit confusing, size has two meanings here, bitmap
and our range size.
Fixes: 1cd6121f2a38 ("btrfs: zoned: implement zoned chunk allocator")
CC: [email protected] # 5.15+
Signed-off-by: Naohiro Aota <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions