diff options
author | 2023-04-18 17:45:24 +0900 | |
---|---|---|
committer | 2023-04-28 17:17:25 +0200 | |
commit | 631003e2333c12cc1b52df06a707365b7363a159 (patch) | |
tree | 20819a7556997516a417f69bde1d2e383b38884d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: properly reject clear_cache and v1 cache for block-group-tree (diff) | |
download | linux-rng-631003e2333c12cc1b52df06a707365b7363a159.tar.xz linux-rng-631003e2333c12cc1b52df06a707365b7363a159.zip |
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: stable@vger.kernel.org # 5.15+
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions