From 0c5a80f6f017038ddeebc85c3642d60039272607 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 18 Oct 2005 13:45:25 +0000 Subject: [PATCH] use seg_type macro --- lib/striped/striped.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/striped/striped.c b/lib/striped/striped.c index a11e96422..84da3a0aa 100644 --- a/lib/striped/striped.c +++ b/lib/striped/striped.c @@ -112,8 +112,8 @@ static int _segments_compatible(struct lv_segment *first, /* FIXME Relax this to first area type != second area type */ /* plus the additional AREA_LV checks needed */ - if ((first->areas[s].type != AREA_PV) || - (second->areas[s].type != AREA_PV)) + if ((seg_type(first, s) != AREA_PV) || + (seg_type(second, s) != AREA_PV)) return 0; width = first->area_len; @@ -142,7 +142,7 @@ static int _merge_segments(struct lv_segment *seg1, struct lv_segment *seg2) seg1->area_len += seg2->area_len; for (s = 0; s < seg1->area_count; s++) - if (seg1->areas[s].type == AREA_PV) + if (seg_type(seg1, s) == AREA_PV) merge_pv_segments(seg_pvseg(seg1, s), seg_pvseg(seg2, s)); -- 2.43.5