Artem Bityutskiy 4bc1dca4b0 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 <Artem.Bityutskiy@nokia.com>
2008-04-19 20:49:41 +03:00
..
2008-04-17 11:31:59 +03:00
2008-01-25 16:41:26 +02:00
2007-10-14 13:10:21 +03:00
2008-01-25 16:41:25 +02:00
2008-04-17 11:31:58 +03:00
2008-01-25 16:41:24 +02:00
2008-04-17 11:32:00 +03:00
2007-04-27 14:23:33 +03:00
2007-04-27 14:23:33 +03:00
2007-12-26 19:15:15 +02:00
2008-04-19 20:49:41 +03:00
2008-04-19 20:49:41 +03:00
2008-04-17 11:31:58 +03:00
2008-04-17 11:31:58 +03:00
2008-01-25 16:41:26 +02:00
2008-03-04 11:02:04 +02:00
2008-03-04 11:03:09 +02:00
2008-01-25 16:41:25 +02:00