super1: fix calculation of space_before

This code was meant to update 'earliest' but clearly never doesn't.

This bug would only affect an array with a very large bitmap so it is unlikely
to be significant.

Signed-off-by: NeilBrown <neilb@suse.com>
This commit is contained in:
NeilBrown 2016-01-28 11:44:27 +11:00
parent 32539f74d2
commit ac92b44a87
1 changed files with 1 additions and 1 deletions

View File

@ -979,7 +979,7 @@ static void getinfo_super1(struct supertype *st, struct mdinfo *info, char *map)
size /= 512;
bmend += size;
if (bmend > earliest)
bmend = earliest;
earliest = bmend;
}
if (sb->bblog_offset && sb->bblog_size) {
unsigned long long bbend = super_offset;