UBI: remove PEB from free tree in get_peb_for_wl()
authorRichard Weinberger <richard@nod.at>
Mon, 3 Dec 2012 19:57:46 +0000 (20:57 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 4 Dec 2012 14:04:16 +0000 (16:04 +0200)
commited4b7021cb51fe5a0f260df03298709347a26967
tree483eee94b6c30566e1b7694169e83e9014567b4b
parent9489e9dcae718d5fde988e4a684a0f55b5f94d17
UBI: remove PEB from free tree in get_peb_for_wl()

If UBI is built without fastmap, get_peb_for_wl() has to
remove the PEB manially from the free tree.
Otherwise the requested PEB lives in two trees.

Reported-by: Zach Sadecki <zsadecki@itwatchdogs.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/wl.c