UBI: tighten the corrupted PEB criteria
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 20 Oct 2010 08:54:58 +0000 (11:54 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 21 Oct 2010 08:20:37 +0000 (11:20 +0300)
commit45aafd32996e27bfc4862654ff31231bdddbe200
treefd2dee47b52135e9532d479a0378a8ec52af6eba
parentdf3fca4cdddfa6e1f51b65214d4342660649bd1f
UBI: tighten the corrupted PEB criteria

If we get a bit-flip of ECC error while reading the data area, do not add it to
corrupted list, because it is possible that this is just unstable PEB with
corruptions caused by unclean reboots.

This patch also improves commentaries.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/scan.c