diff options
author | Alasdair Kergon <agk@redhat.com> | 2008-11-03 22:14:30 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2008-11-03 22:14:30 +0000 |
commit | 2c44337bd5ff7aa217a39003460cba4742a1b867 (patch) | |
tree | 96e88ac95f4a573f099338ec48df36c9c55ff926 /lib/metadata/merge.c | |
parent | 28f60ff82f7c13236475129295a88a01d61838c7 (diff) | |
download | lvm2-2c44337bd5ff7aa217a39003460cba4742a1b867.tar.gz lvm2-2c44337bd5ff7aa217a39003460cba4742a1b867.tar.xz lvm2-2c44337bd5ff7aa217a39003460cba4742a1b867.zip |
Right, a simple build (without options) is working again.
Diffstat (limited to 'lib/metadata/merge.c')
-rw-r--r-- | lib/metadata/merge.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/metadata/merge.c b/lib/metadata/merge.c index 29a9df54..66e9ce0e 100644 --- a/lib/metadata/merge.c +++ b/lib/metadata/merge.c @@ -37,17 +37,17 @@ static int _merge(struct lv_segment *first, struct lv_segment *second) int lv_merge_segments(struct logical_volume *lv) { - struct list *segh, *t; + struct dm_list *segh, *t; struct lv_segment *current, *prev = NULL; if (lv->status & LOCKED || lv->status & PVMOVE) return 1; - list_iterate_safe(segh, t, &lv->segments) { - current = list_item(segh, struct lv_segment); + dm_list_iterate_safe(segh, t, &lv->segments) { + current = dm_list_item(segh, struct lv_segment); if (_merge(prev, current)) - list_del(¤t->list); + dm_list_del(¤t->list); else prev = current; } @@ -67,7 +67,7 @@ int check_lv_segments(struct logical_volume *lv, int complete_vg) uint32_t area_multiplier, s; struct seg_list *sl; - list_iterate_items(seg, &lv->segments) { + dm_list_iterate_items(seg, &lv->segments) { seg_count++; if (seg->le != le) { log_error("LV %s invalid: segment %u should begin at " @@ -175,7 +175,7 @@ int check_lv_segments(struct logical_volume *lv, int complete_vg) } */ seg_found = 0; - list_iterate_items(sl, &seg_lv(seg, s)->segs_using_this_lv) + dm_list_iterate_items(sl, &seg_lv(seg, s)->segs_using_this_lv) if (sl->seg == seg) seg_found++; if (!seg_found) { @@ -198,7 +198,7 @@ int check_lv_segments(struct logical_volume *lv, int complete_vg) le += seg->len; } - list_iterate_items(sl, &lv->segs_using_this_lv) { + dm_list_iterate_items(sl, &lv->segs_using_this_lv) { seg = sl->seg; seg_found = 0; for (s = 0; s < seg->area_count; s++) { @@ -226,7 +226,7 @@ int check_lv_segments(struct logical_volume *lv, int complete_vg) } seg_found = 0; - list_iterate_items(seg2, &seg->lv->segments) + dm_list_iterate_items(seg2, &seg->lv->segments) if (sl->seg == seg2) { seg_found++; break; @@ -334,7 +334,7 @@ static int _lv_split_segment(struct logical_volume *lv, struct lv_segment *seg, } /* Add split off segment to the list _after_ the original one */ - list_add_h(&seg->list, &split_seg->list); + dm_list_add_h(&seg->list, &split_seg->list); return 1; } |