]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commit94780d4de2e9339ab93df63420db70f11882634d
tree39c83f8c66ca2529d5e30560818ef85e97992c76
parent2362a53ec59f286495307e0e0d8ef2401e8c5c49
UBI: bugfix: allocate mandatory EBs first

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>
drivers/mtd/ubi/eba.c