diff options
| author | Naohiro Aota <[email protected]> | 2022-05-03 21:10:04 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-05-05 19:05:56 +0000 |
| commit | 549577127afeb759c29cdeeff1bdccd86e6c0dbf (patch) | |
| tree | 68327ecbe3d8e78ddcbbb5c2305992a94c78defa /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | btrfs: force v2 space cache usage for subpage mount (diff) | |
| download | kernel-549577127afeb759c29cdeeff1bdccd86e6c0dbf.tar.gz kernel-549577127afeb759c29cdeeff1bdccd86e6c0dbf.zip | |
btrfs: zoned: move non-changing condition check out of the loop
btrfs_zone_activate() checks if block_group->alloc_offset ==
block_group->zone_capacity every time it iterates the loop. But, it is
not depending on the index. Move out the check and do it only once.
Fixes: f9a912a3c45f ("btrfs: zoned: make zone activation multi stripe capable")
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Naohiro Aota <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
