diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2022-05-04 00:10:04 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-05-05 22:05:56 +0300 |
commit | 549577127afeb759c29cdeeff1bdccd86e6c0dbf (patch) | |
tree | 68327ecbe3d8e78ddcbbb5c2305992a94c78defa /fs/d_path.c | |
parent | 9f73f1aef98b2fa7252c0a89be64840271ce8ea0 (diff) | |
download | linux-549577127afeb759c29cdeeff1bdccd86e6c0dbf.tar.xz |
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 <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/d_path.c')
0 files changed, 0 insertions, 0 deletions