lightnvm: pblk: fix incorrect min_write_pgs
authorMatias Bjørling <mb@lightnvm.io>
Tue, 9 Oct 2018 11:11:38 +0000 (13:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Oct 2018 14:25:06 +0000 (08:25 -0600)
commit8bbd45d02a118cbefdf4e1a6274bd965a6aa3c59
tree03882d80b5dc3d8cae78821febc84da7fa24fac6
parentafdc23c91e085c56d1b0c119563c202b07255599
lightnvm: pblk: fix incorrect min_write_pgs

The calculation of pblk->min_write_pgs should only use the optimal
write size attribute provided by the drive, it does not correlate to
the memory page size of the system, which can be smaller or larger
than the LBA size reported.

Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-init.c