mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
mirror: Explicit cast in region_size_max
This commit is contained in:
parent
cb727a1ccc
commit
a432066c7c
@ -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
|
* This code should be removed when the CPG restriction is
|
||||||
* lifted.
|
* 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;
|
region_min_pow2 = 1;
|
||||||
while (region_min_pow2 < region_min)
|
while (region_min_pow2 < region_min)
|
||||||
region_min_pow2 *= 2;
|
region_min_pow2 *= 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user