summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2016-07-12 16:25:06 +0200
committerHeinz Mauelshagen <heinzm@redhat.com>2016-07-12 16:25:12 +0200
commitc32f96f277ae1a36509c15b411939f779580b264 (patch)
tree5d55e6323f705453028afeabf888fbe6bd44319f
parent4ca55192e0347c0c5124f7f2d8c1c30aa4d57a43 (diff)
downloadlvm2-c32f96f277ae1a36509c15b411939f779580b264.tar.gz
vgsplit: use dm_list_next()
-rw-r--r--tools/vgsplit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgsplit.c b/tools/vgsplit.c
index 806dafe64..909a786df 100644
--- a/tools/vgsplit.c
+++ b/tools/vgsplit.c
@@ -46,7 +46,7 @@ static int _lv_tree_move(struct dm_list *lvh,
/* Update the list pointer refering to the item moving to @vg_to. */
if (lvh == *lvht)
- *lvht = lvh->n;
+ *lvht = dm_list_next(lvh, lvh);
dm_list_move(&vg_to->lvs, lvh);
lv->vg = vg_to;