]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5b9fc982aacedad3d622d445b3b9782caec2095
tree03882d80b5dc3d8cae78821febc84da7fa24fac6
parent1a6be6b85d736541c9c97a51555271520e602a3f
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