]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit319a5327eda050bcde93c6043d99ccf78260ca59
tree483eee94b6c30566e1b7694169e83e9014567b4b
parent45ed87e9c2a9b490d42109c600852f2af060ba42
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