From: Yauhen Kharuzhy Date: Thu, 26 Mar 2009 22:41:09 +0000 (+0200) Subject: [MTD] mtdpart: Make ecc_stats more realistic. X-Git-Tag: v2.6.30-rc1~143^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8877f191e35718ba11a4d46950131e74c40566c;p=pandora-kernel.git [MTD] mtdpart: Make ecc_stats more realistic. 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 Signed-off-by: David Woodhouse --- Reading git-diff-tree failed