diff options
author | Hans Holmberg <hans.holmberg@cnexlabs.com> | 2018-10-09 13:11:50 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-10-09 16:25:07 +0200 |
commit | 765462fa4c4d0fd3eb718f2ba14cb04c35219854 (patch) | |
tree | b97d875ef5463cc92466dca93681cca2798edc0c /drivers/lightnvm/pblk-map.c | |
parent | lightnvm: pblk: fix up prints in pblk_read_check_rand (diff) | |
download | linux-765462fa4c4d0fd3eb718f2ba14cb04c35219854.tar.xz linux-765462fa4c4d0fd3eb718f2ba14cb04c35219854.zip |
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: 76758390f83e ("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>
Diffstat (limited to 'drivers/lightnvm/pblk-map.c')
0 files changed, 0 insertions, 0 deletions