diff options
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r-- | tools/vgreduce.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c index eb228a36..287db411 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -39,9 +39,7 @@ static int _remove_pv(struct volume_group *vg, struct pv_list *pvl, int silent) vg->free_count -= pvl->pv->pe_count; vg->extent_count -= pvl->pv->pe_count; - vg->pv_count--; - - dm_list_del(&pvl->list); + del_pvl_from_vgs(vg, pvl); return 1; } |