1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-31 14:50:37 +03:00

allocation: use vg memory pool

Looks like forgotten memory allocation related to VG used cmd mem pool.
This commit is contained in:
Zdenek Kabelac 2014-09-11 19:00:13 +02:00
parent 3880ca5eca
commit 15ba2afdc2

View File

@ -3083,7 +3083,7 @@ struct alloc_handle *allocate_extents(struct volume_group *vg,
if (alloc >= ALLOC_INHERIT)
alloc = vg->alloc;
if (!(ah = _alloc_init(vg->cmd, vg->cmd->mem, segtype, alloc, approx_alloc,
if (!(ah = _alloc_init(vg->cmd, vg->vgmem, segtype, alloc, approx_alloc,
lv ? lv->le_count : 0, extents, mirrors, stripes, log_count,
vg->extent_size, region_size,
parallel_areas)))