1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

raid: cleanup _lv_set_image_lvs_start_les()

Avoid second loop.
This commit is contained in:
Heinz Mauelshagen 2017-03-07 21:55:19 +01:00
parent 05aceaffbd
commit 9ed11e9191

View File

@ -1302,12 +1302,11 @@ static int _lv_set_image_lvs_start_les(struct logical_volume *lv)
data_seg->le = le;
le += data_seg->len;
}
}
/* Try merging rimage sub LV segments _after_ adjusting start LEs */
for (s = 0; s < seg->area_count; s++)
if (!lv_merge_segments(seg_lv(seg, s)))
return_0;
}
return 1;
}