UBI: bugfix: allocate mandatory EBs first
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 4 Dec 2007 19:36:12 +0000 (21:36 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:17 +0000 (17:08 +0300)
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