linux/drivers/lightnvm
Hans Holmberg 765462fa4c lightnvm: pblk: fix write amplificiation calculation
When the user data counter exceeds 32 bits, the write amplification
calculation does not provide the right value. Fix this by using
div64_u64 in stead of div64.

Fixes: 76758390f8 ("lightnvm: pblk: export write amplification counters to sysfs")
Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-10-09 08:25:07 -06:00
..
core.c lightnvm: introduce nvm_rq_to_ppa_list 2018-10-09 08:25:07 -06:00
Kconfig lightnvm: remove dependencies on BLK_DEV_NVME and PCI 2018-10-09 08:25:05 -06:00
Makefile lightnvm: remove rrpc 2018-01-05 08:50:12 -07:00
pblk-cache.c block: Add and use op_stat_group() for indexing disk_stat fields. 2018-07-18 08:44:20 -06:00
pblk-core.c lightnvm: pblk: remove unused parameters in pblk_up_rq 2018-10-09 08:25:07 -06:00
pblk-gc.c lightnvm: pblk: expose generic disk name on pr_* msgs 2018-07-13 08:14:43 -06:00
pblk-init.c lightnvm: pblk: allocate line map bitmaps using a mempool 2018-10-09 08:25:07 -06:00
pblk-map.c lightnvm: introduce nvm_rq_to_ppa_list 2018-10-09 08:25:07 -06:00
pblk-rb.c lightnvm: pblk: improve line helpers 2018-10-09 08:25:06 -06:00
pblk-read.c lightnvm: pblk: fix up prints in pblk_read_check_rand 2018-10-09 08:25:07 -06:00
pblk-recovery.c lightnvm: pblk: allocate line map bitmaps using a mempool 2018-10-09 08:25:07 -06:00
pblk-rl.c lightnvm: pblk: unify vector max req constants 2018-10-09 08:25:06 -06:00
pblk-sysfs.c lightnvm: pblk: fix write amplificiation calculation 2018-10-09 08:25:07 -06:00
pblk-write.c lightnvm: pblk: remove unused parameters in pblk_up_rq 2018-10-09 08:25:07 -06:00
pblk.h lightnvm: pblk: remove unused parameters in pblk_up_rq 2018-10-09 08:25:07 -06:00