diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2011-10-23 16:02:01 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2011-10-23 16:02:01 +0000 |
commit | 72ff89d27904d0a6f78f7638f1a37c3291bf7b62 (patch) | |
tree | 8c3453249d6c63a042836d6b8e834839f4149aed /lib/format_pool | |
parent | c13f82579c550b0d015d14f64a2c176d47362a24 (diff) | |
download | lvm2-72ff89d27904d0a6f78f7638f1a37c3291bf7b62.tar.gz |
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.
Diffstat (limited to 'lib/format_pool')
-rw-r--r-- | lib/format_pool/import_export.c | 4 |
1 files changed, 2 insertions, 2 deletions
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))) { |