[MTD] mtdpart: Make ecc_stats more realistic.
authorYauhen Kharuzhy <jekhor@gmail.com>
Thu, 26 Mar 2009 22:41:09 +0000 (00:41 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 6 Apr 2009 14:22:28 +0000 (07:22 -0700)
In the existing implementation, ecc_stats fields are incremented only by
one, regardless of master mtd errors number. For example, if there are N
errors were corrected by ECC, partition ecc_stats.corrected will be
incremented by one.

This commit changes simple increment to sum of old value and parent mtd
error count.

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

No differences found