From: Artem Bityutskiy Date: Sat, 19 Apr 2008 17:44:31 +0000 (+0300) Subject: UBI: fix mean EC calculation X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91d452faa8b9bc0e1c9c3cd8e0feeca796344982;p=pandora-kernel.git UBI: fix mean EC calculation (a + b) / (c + d) != a / c + b / d. The old code errornously assumed this incorrect formuld. Instead, just sum all erase counters in a 64-bit variable and divide to the number of EBs at the end. Thanks to Adrian Hunter for pointing this out. Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed