From 72ff89d27904d0a6f78f7638f1a37c3291bf7b62 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 23 Oct 2011 16:02:01 +0000 Subject: Always use vg memory pool for allocated lv segment Remove mem pool parameter from alloc_lv_segment() Since we should always allocate LV segment from the vg mempool. --- lib/format_pool/import_export.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/format_pool') diff --git a/lib/format_pool/import_export.c b/lib/format_pool/import_export.c index a1a1f08eb..f7f619e84 100644 --- a/lib/format_pool/import_export.c +++ b/lib/format_pool/import_export.c @@ -193,7 +193,7 @@ static int _add_stripe_seg(struct dm_pool *mem, "striped"))) return_0; - if (!(seg = alloc_lv_segment(mem, segtype, lv, *le_cur, + if (!(seg = alloc_lv_segment(segtype, lv, *le_cur, area_len * usp->num_devs, 0, usp->striping, NULL, NULL, usp->num_devs, area_len, 0, 0, 0, NULL))) { @@ -233,7 +233,7 @@ static int _add_linear_seg(struct dm_pool *mem, for (j = 0; j < usp->num_devs; j++) { area_len = (usp->devs[j].blocks) / POOL_PE_SIZE; - if (!(seg = alloc_lv_segment(mem, segtype, lv, *le_cur, + if (!(seg = alloc_lv_segment(segtype, lv, *le_cur, area_len, 0, usp->striping, NULL, NULL, 1, area_len, POOL_PE_SIZE, 0, 0, NULL))) { -- cgit v1.2.1