UBI: Split __wl_get_peb()
authorRichard Weinberger <richard@nod.at>
Fri, 7 Nov 2014 22:40:27 +0000 (23:40 +0100)
committerRichard Weinberger <richard@nod.at>
Thu, 26 Mar 2015 21:17:46 +0000 (22:17 +0100)
commit691a870563b4fe9e014a309477fb8f9fe41b36bb
tree39643a305695553da0c2efd655c980282fdb853f
parentd59f21bebe9d0fda34027ff1afda4f2b0d5f1869
UBI: Split __wl_get_peb()

Make it two functions, wl_get_wle() and wl_get_peb().
wl_get_peb() works exactly like __wl_get_peb() but wl_get_wle()
does not call produce_free_peb().
While refilling the fastmap user pool we cannot release ubi->wl_lock
as produce_free_peb() does.
Hence the fastmap logic uses now wl_get_wle().

Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/wl.c