]> git.baikalelectronics.ru Git - kernel.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)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:12:47 +0000 (18:12 +0000)
commitd0747d2a89527b292cf0dda85d3dd8918c82a130
treefdbbe58414a31b2a8101f948ac3022c3e1ecc2c7
parentc7a3dfbb2c3dfe8d4f43b747108e63ba386e143d
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>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdoops.c