mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: keep 64bit arithmetic
Highly unlikely this case will ever need 64bit math, but just in case, keep the expression as 64bit.
This commit is contained in:
parent
a7258ae394
commit
3ce8db8b88
@ -2342,7 +2342,7 @@ static int _lv_size_disp(struct dm_report *rh, struct dm_pool *mem,
|
|||||||
uint64_t size = lv->le_count;
|
uint64_t size = lv->le_count;
|
||||||
|
|
||||||
if (seg && !lv_is_raid_image(lv))
|
if (seg && !lv_is_raid_image(lv))
|
||||||
size -= seg->reshape_len * (seg->area_count > 2 ? (seg->area_count - seg->segtype->parity_devs) : 1);
|
size -= (uint64_t) seg->reshape_len * (seg->area_count > 2 ? (seg->area_count - seg->segtype->parity_devs) : 1);
|
||||||
|
|
||||||
size *= lv->vg->extent_size;
|
size *= lv->vg->extent_size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user