mtd: mtdoops: keep track of used/unused pages in an array
authorSimon Kagstrom <simon.kagstrom@netinsight.net>
Thu, 29 Oct 2009 12:41:11 +0000 (13:41 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 30 Nov 2009 12:01:59 +0000 (12:01 +0000)
commitbe95745f01677245a061a8f51473ef5ec8ad008e
tree404004e0036b4e558aa47145e8c4b57b2079a343
parenta15b124fc4f15b2c4fc51669c936a30ce179d1f7
mtd: mtdoops: keep track of used/unused pages in an array

This patch makes mtdoops keep track of used/unused pages in an array
instead of scanning the flash after a write. The advantage with this
approach is that it avoids calling mtd->read on a panic, which is not
possible for all mtd drivers.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Reviewed-by: Anders Grafstrom <anders.grafstrom@netinsight.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdoops.c