diff options
author | David Sterba <dsterba@suse.com> | 2021-06-23 17:54:54 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-07-07 17:42:34 +0200 |
commit | 54afaae34ee49e98c1c902b444b42832551d090c (patch) | |
tree | 041a785b67a9bdd0a1ca80dd61e9356f4b9add10 /fs/btrfs/export.c | |
parent | 629e33a16809ae0274e1f5fc3d22b92b9bd0fdf1 (diff) |
btrfs: zoned: fix types for u64 division in btrfs_reclaim_bgs_work
The types in calculation of the used percentage in the reclaiming
messages are both u64, though bg->length is either 1GiB (non-zoned) or
the zone size in the zoned mode. The upper limit on zone size is 8GiB so
this could theoretically overflow in the future, right now the values
fit.
Fixes: 18bb8bbf13c1 ("btrfs: zoned: automatically reclaim zones")
CC: stable@vger.kernel.org # 5.13
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/export.c')
0 files changed, 0 insertions, 0 deletions