diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2008-03-26 17:26:32 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2008-03-26 17:26:32 +0000 |
commit | 8e32e58e002b34cb00fb304b1a1fc5428bc2a02f (patch) | |
tree | 20c4c2ad626fd6a6b9f2b87339877a3ac9bdb85a /tools/vgsplit.c | |
parent | 052bbfba3a878e11ec1648fb7a44d5bafae515d7 (diff) | |
download | lvm2-8e32e58e002b34cb00fb304b1a1fc5428bc2a02f.tar.gz lvm2-8e32e58e002b34cb00fb304b1a1fc5428bc2a02f.tar.xz lvm2-8e32e58e002b34cb00fb304b1a1fc5428bc2a02f.zip |
Use list_move() in applicable places.
Diffstat (limited to 'tools/vgsplit.c')
-rw-r--r-- | tools/vgsplit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/vgsplit.c b/tools/vgsplit.c index 65069f27..e098f109 100644 --- a/tools/vgsplit.c +++ b/tools/vgsplit.c @@ -20,8 +20,7 @@ static void _move_pv(struct volume_group *vg_from, struct volume_group *vg_to, { struct physical_volume *pv; - list_del(&pvl->list); - list_add(&vg_to->pvs, &pvl->list); + list_move(&pvl->list, &vg_to->pvs); vg_from->pv_count--; vg_to->pv_count++; |