]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: mtdoops: skip reading initially bad blocks
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Fri, 2 Dec 2011 13:07:17 +0000 (15:07 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Thu, 8 Dec 2011 21:49:56 +0000 (23:49 +0200)
commitba138277bd9cecf5f0d46d715747cda9e99de9b3
tree8d6c9507dc7333b0e8d6125aa01c5303633b0018
parentd2feec5f85500aa8462ee12a673a10b7f149e72c
mtd: mtdoops: skip reading initially bad blocks

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.

Cc: stable@kernel.org
Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/mtdoops.c