summaryrefslogtreecommitdiffstats
path: root/tools/vgsplit.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/vgsplit.c')
-rw-r--r--tools/vgsplit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/vgsplit.c b/tools/vgsplit.c
index d7e7c903..dc1e8aee 100644
--- a/tools/vgsplit.c
+++ b/tools/vgsplit.c
@@ -35,11 +35,11 @@ static int _move_pv(struct volume_group *vg_from, struct volume_group *vg_to,
pv = list_item(pvl, struct pv_list)->pv;
- vg_from->extent_count -= pv->pe_count;
- vg_to->extent_count += pv->pe_count;
+ vg_from->extent_count -= get_pv_pe_count(pv);
+ vg_to->extent_count += get_pv_pe_count(pv);
- vg_from->free_count -= pv->pe_count - get_pv_pe_alloc_count(pv);
- vg_to->free_count += pv->pe_count - get_pv_pe_alloc_count(pv);
+ vg_from->free_count -= get_pv_pe_count(pv) - get_pv_pe_alloc_count(pv);
+ vg_to->free_count += get_pv_pe_count(pv) - get_pv_pe_alloc_count(pv);
return 1;
}