summaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorSebastian Siewior <bigeasy@linutronix.de>2015-11-26 21:23:50 +0100
committerRichard Weinberger <richard@nod.at>2016-01-10 12:33:11 +0100
commit34b89df90374b631692132640c6b3dbef52f808d (patch)
tree3a1e0fec6d608bf57763f94f6b92e05f0cb54ebb /fs/ubifs
parent168309855a7d1e16db751e9c647119fe2d2dc878 (diff)
downloadop-kernel-dev-34b89df90374b631692132640c6b3dbef52f808d.zip
op-kernel-dev-34b89df90374b631692132640c6b3dbef52f808d.tar.gz
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>
Diffstat (limited to 'fs/ubifs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud