]> sourceware.org Git - lvm2.git/commitdiff
vgsplit: use dm_list_next()
authorHeinz Mauelshagen <heinzm@redhat.com>
Tue, 12 Jul 2016 14:25:06 +0000 (16:25 +0200)
committerHeinz Mauelshagen <heinzm@redhat.com>
Tue, 12 Jul 2016 14:25:12 +0000 (16:25 +0200)
tools/vgsplit.c

index 806dafe64f754f8ce9c1cf712cb47c7efa5aa18e..909a786df8aadcd26ff7b27d36e2d11e8d89b789 100644 (file)
@@ -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;
This page took 0.043881 seconds and 5 git commands to generate.