aboutsummaryrefslogtreecommitdiff
path: root/fs/ubifs
diff options
context:
space:
mode:
authorGravatar Sebastian Siewior <bigeasy@linutronix.de> 2015-11-26 21:23:50 +0100
committerGravatar Richard Weinberger <richard@nod.at> 2016-01-10 12:33:11 +0100
commit34b89df90374b631692132640c6b3dbef52f808d (patch)
tree3a1e0fec6d608bf57763f94f6b92e05f0cb54ebb /fs/ubifs
parentLinux 4.4-rc8 (diff)
downloadlinux-34b89df90374b631692132640c6b3dbef52f808d.tar.gz
linux-34b89df90374b631692132640c6b3dbef52f808d.tar.bz2
linux-34b89df90374b631692132640c6b3dbef52f808d.zip
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