UBI: introduce eraseblock counter variables
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 30 Apr 2010 09:31:26 +0000 (12:31 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 4 Jun 2010 08:30:43 +0000 (11:30 +0300)
commit33789fb9d4470e27d18596c0966339e2ca8865a9
tree82b5025c7e0b40289977f1ccc9173c1702a4b036
parenteb89580e1a8388d206bf143c6c39d001095106ba
UBI: introduce eraseblock counter variables

This is just a preparation patch which introduces several
'struct ubi_scan_info' fields which count eraseblocks of different
types. This will be used later on to decide whether it is safe to
format the flash or not. No functional changes so far.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Reviewed-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Tested-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
drivers/mtd/ubi/scan.c
drivers/mtd/ubi/scan.h