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:
parent
05aceaffbd
commit
9ed11e9191
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user