UBI: bugfix: allocate mandatory EBs first
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 4 Dec 2007 19:36:12 +0000 (21:36 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 26 Dec 2007 17:15:14 +0000 (19:15 +0200)
First allocate the necessary eraseblocks, then the optional ones.
Otherwise it allocates all PEBs for bad EB handling, and fails
on then following EBA LEB allocation.

Reported-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found