Files
linux/drivers/mtd/ubi
Sebastian Siewior 34b89df903 mtd: ubi: wl: avoid erasing a PEB which is empty
wear_leveling_worker() currently unconditionally puts a PEB on erase in
the error case even it just been taken from the free_list and never
used.
In case the PEB was never used it can be put back on the free list
saving a precious erase cycle.

v1…v2:
	- to_leb_clean -> dst_leb_clean
	- use the nested option for ensure_wear_leveling()
	- do_sync_erase() can't go -ENOMEM so we can just go into
	  RO-mode now.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
2016-01-10 12:33:11 +01:00
..
2015-11-06 23:26:51 +01:00
2015-12-16 22:45:04 +01:00
2015-04-13 21:05:17 +02:00
2015-10-03 20:09:55 +02:00
2015-11-06 23:26:50 +01:00
2015-10-03 20:09:41 +02:00
2014-11-07 15:14:09 +02:00
2015-03-26 22:47:38 +01:00