Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix zcachedb slabs overflow (openzfs#227)
With the total_slots field converted to a u16 recently for BitmapSlabs an integer overflow comes up on zcachedb when we multiply that field by 100 to get a percentage. This patch fixes this overflow by promoting the integer to a u64 just for this calculation.
- Loading branch information