linux/drivers/mtd/ubi
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
..
build.c UBI: fix error printing 2008-04-17 11:31:59 +03:00
cdev.c UBI: implement atomic LEB change ioctl 2008-01-25 16:41:26 +02:00
debug.c UBI: use byte hexdump 2007-10-14 13:10:21 +03:00
debug.h UBI: be verbose when debuggin is enabled 2008-04-17 11:31:58 +03:00
eba.c UBI: handle zero-length case 2008-01-25 16:41:25 +02:00
gluebi.c UBI: initialize static volumes with vol->used_bytes 2008-04-17 11:32:02 +03:00
io.c UBI: be verbose when debuggin is enabled 2008-04-17 11:31:58 +03:00
kapi.c UBI: fix warnings 2008-01-25 16:41:24 +02:00
Kconfig UBI: improve Kconfig documentation 2008-04-17 11:32:00 +03:00
Kconfig.debug
Makefile
misc.c UBI: improve internal interfaces 2007-12-26 19:15:15 +02:00
scan.c UBI: fix mean EC calculation 2008-04-19 20:49:41 +03:00
scan.h UBI: fix mean EC calculation 2008-04-19 20:49:41 +03:00
ubi-media.h UBI: make ubi-header.h local 2008-04-17 11:31:58 +03:00
ubi.h UBI: make ubi-header.h local 2008-04-17 11:31:58 +03:00
upd.c UBI: implement atomic LEB change ioctl 2008-01-25 16:41:26 +02:00
vmt.c UBI: silence warning 2008-03-04 11:02:04 +02:00
vtbl.c UBI: mtd/ubi/vtbl.c: fix memory leak 2008-03-04 11:03:09 +02:00
wl.c UBI: fix warnings 2008-01-25 16:41:25 +02:00