summaryrefslogtreecommitdiffstats
path: root/tools/vgreduce.c
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2007-06-13 22:04:45 +0000
committerDave Wysochanski <dwysocha@redhat.com>2007-06-13 22:04:45 +0000
commitaeea47205b846310303c74a990686a2ae3f073ad (patch)
treece8223c66fa4da25a034982de514d65b38da1776 /tools/vgreduce.c
parentfb6ca78e0553d57293e2fc491bda795e0104d37b (diff)
downloadlvm2-aeea47205b846310303c74a990686a2ae3f073ad.tar.gz
lvm2-aeea47205b846310303c74a990686a2ae3f073ad.tar.xz
lvm2-aeea47205b846310303c74a990686a2ae3f073ad.zip
Convert pv->pe_alloc_count to get_pv_pe_alloc_count
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r--tools/vgreduce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c
index 92dd21eb..f2b438f8 100644
--- a/tools/vgreduce.c
+++ b/tools/vgreduce.c
@@ -397,7 +397,7 @@ static int _vgreduce_single(struct cmd_context *cmd, struct volume_group *vg,
}
vg->pv_count--;
- vg->free_count -= pv->pe_count - pv->pe_alloc_count;
+ vg->free_count -= pv->pe_count - get_pv_pe_alloc_count(pv);
vg->extent_count -= pv->pe_count;
if (!vg_write(vg) || !vg_commit(vg)) {