All of lore.kernel.org
 help / color / mirror / Atom feed
* master - raid: favour dm_list_first()
@ 2017-03-30 16:13 Heinz Mauelshagen
  0 siblings, 0 replies; only message in thread
From: Heinz Mauelshagen @ 2017-03-30 16:13 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c34ab29ec6c3e737b65a1b589ef4091944a5127d
Commit:        c34ab29ec6c3e737b65a1b589ef4091944a5127d
Parent:        2d75ef3b057fac5df66dee97b1cf93a582258582
Author:        Heinz Mauelshagen <heinzm@redhat.com>
AuthorDate:    Thu Mar 30 18:13:27 2017 +0200
Committer:     Heinz Mauelshagen <heinzm@redhat.com>
CommitterDate: Thu Mar 30 18:13:27 2017 +0200

raid: favour dm_list_first()

---
 lib/metadata/raid_manip.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c
index ed0f4c1..8e5b1a8 100644
--- a/lib/metadata/raid_manip.c
+++ b/lib/metadata/raid_manip.c
@@ -3091,8 +3091,7 @@ int lv_raid_split(struct logical_volume *lv, int yes, const char *split_name,
 	}
 
 	/* Get first item */
-	dm_list_iterate_items(lvl, &data_list)
-		break;
+	lvl = (struct lv_list *) dm_list_first(&data_list);
 
 	lvl->lv->name = split_name;
 



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-30 16:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-30 16:13 master - raid: favour dm_list_first() Heinz Mauelshagen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.