diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2010-04-13 17:26:20 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2010-04-13 17:26:20 +0000 |
commit | 11647ad01c7300823a8a5f27d60d2ee49b8e79a0 (patch) | |
tree | 0cfe9091a03ac2a3961a92942fcb865d3c688469 /tools/vgreduce.c | |
parent | 0adfbfd5ea1293efb3d5876628419e31bf96763b (diff) | |
download | lvm2-11647ad01c7300823a8a5f27d60d2ee49b8e79a0.tar.gz lvm2-11647ad01c7300823a8a5f27d60d2ee49b8e79a0.tar.xz lvm2-11647ad01c7300823a8a5f27d60d2ee49b8e79a0.zip |
Use del_pvl_from_vgs() in vgreduce paths.
Somehow these got missed in earlier patches.
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r-- | tools/vgreduce.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c index 287db411..0cbe4b04 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -407,7 +407,7 @@ static int _vgreduce_single(struct cmd_context *cmd, struct volume_group *vg, 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; @@ -417,7 +417,6 @@ static int _vgreduce_single(struct cmd_context *cmd, struct volume_group *vg, goto bad; } - vg->pv_count--; vg->free_count -= pv_pe_count(pv) - pv_pe_alloc_count(pv); vg->extent_count -= pv_pe_count(pv); |