mtd: mtdoops: skip reading initially bad blocks
commit13205eedda9d80daf129ddad54bd6ffe5df92dff
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Fri, 2 Dec 2011 13:07:17 +0000 (2 15:07 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 01:24:32 +0000 (25 17:24 -0800)
treee788206dad7160e8ff8b95ddfa9b714bdc90cb4c
parent63f0d35a610b2ef1139b5d763ee74cab5257a8c8
mtd: mtdoops: skip reading initially bad blocks

commit 3538c56329936c78f7d356889908790006d0124c upstream.

Use block_isbad to check and skip the bad blocks reading.
This will allow to get rid of the read errors if bad blocks
are present initially.

Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mtd/mtdoops.c