1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

mirror: Explicit cast in region_size_max

This commit is contained in:
Alasdair G Kergon 2015-02-26 19:49:25 +00:00
parent cb727a1ccc
commit a432066c7c

View File

@ -193,7 +193,7 @@ uint32_t adjusted_mirror_region_size(uint32_t extent_size, uint32_t extents,
* This code should be removed when the CPG restriction is
* lifted.
*/
region_min = extents * extent_size / CMIRROR_REGION_COUNT_LIMIT;
region_min = (uint64_t) extents * extent_size / CMIRROR_REGION_COUNT_LIMIT;
region_min_pow2 = 1;
while (region_min_pow2 < region_min)
region_min_pow2 *= 2;