Somehow these got missed in earlier patches.
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
goto bad;
}
- vg->pv_count--;
vg->free_count -= pv_pe_count(pv) - pv_pe_alloc_count(pv);
vg->extent_count -= pv_pe_count(pv);
+ del_pvl_from_vgs(vg, pvl);
/* add pv to the remove_pvs list */
- dm_list_del(&pvl->list);
dm_list_add(&vg->removed_pvs, &pvl->list);
return 1;
log_verbose("Removing \"%s\" from volume group \"%s\"", name, vg->name);
if (pvl)
- dm_list_del(&pvl->list);
+ del_pvl_from_vgs(vg, pvl);
pv->vg_name = vg->fid->fmt->orphan_vg_name;
pv->status = ALLOCATABLE_PV;
goto bad;
}
- vg->pv_count--;
vg->free_count -= pv_pe_count(pv) - pv_pe_alloc_count(pv);
vg->extent_count -= pv_pe_count(pv);