android_kernel_xiaomi_sm8350/drivers/mtd/ubi
Artem Bityutskiy 0798cea8c2 UBI: improve corrupted flash handling
This patch improves the way UBI handles corrupted flash, or flash
containing garbage or non-UBI data, which is the same from UBI POW.
Namely, we do the following:

* if 5% or more PEBs are corrupted, refuse the flash
* if less than 5% PEBs are corrupted, do not refuse the flash
  and format these PEBs
* if less than 8 PEBs are corrupted, format them silently, otherwise
  print a warning message.

Reported-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Reviewed-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Tested-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
2010-06-04 11:30:44 +03:00
..
build.c UBI: init even if MTD device cannot be attached, if built into kernel 2010-05-06 09:12:11 +03:00
cdev.c drop unused dentry argument to ->fsync 2010-05-27 22:05:02 -04:00
debug.c UBI: introduce flash dump helper 2009-08-14 20:02:20 +03:00
debug.h UBI: add write checking 2010-02-01 15:16:37 +02:00
eba.c UBI: introduce a new IO return code 2010-06-04 11:30:42 +03:00
gluebi.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
io.c UBI: introduce a new IO return code 2010-06-04 11:30:42 +03:00
kapi.c UBI: fix s/then/than/ typos 2010-05-07 08:33:10 +03:00
Kconfig UBI: fix s/then/than/ typos 2010-05-07 08:33:10 +03:00
Kconfig.debug
Makefile UBI: make gluebi a separate module 2009-06-03 17:45:23 +03:00
misc.c
scan.c UBI: improve corrupted flash handling 2010-06-04 11:30:44 +03:00
scan.h UBI: introduce eraseblock counter variables 2010-06-04 11:30:43 +03:00
ubi-media.h UBI: add image sequence number to EC header 2009-07-05 18:47:07 +03:00
ubi.h UBI: introduce a new IO return code 2010-06-04 11:30:42 +03:00
upd.c UBI: fix memory leak in update path 2010-01-18 18:53:56 +02:00
vmt.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
vtbl.c UBI: misc comment fixes 2010-05-07 08:33:32 +03:00
wl.c UBI: fix s/then/than/ typos 2010-05-07 08:33:10 +03:00