lightnvm: pblk: unify vector max req constants
authorMatias Bjørling <mb@lightnvm.io>
Tue, 9 Oct 2018 11:11:37 +0000 (13:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Oct 2018 14:25:06 +0000 (08:25 -0600)
commitafdc23c91e085c56d1b0c119563c202b07255599
treeb6fb38867f5f5872cf67787b62daefff795f829c
parentaff3fb18f957de93e629c7d3d2c4ef1f360aa511
lightnvm: pblk: unify vector max req constants

Both NVM_MAX_VLBA and PBLK_MAX_REQ_ADDRS define how many LBAs that
are available in a vector command. pblk uses them interchangeably
in its implementation. Use NVM_MAX_VLBA as the main one and remove
usages of PBLK_MAX_REQ_ADDRS.

Also remove the power representation that only has one user, and
instead calculate it at runtime.

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
drivers/lightnvm/pblk-read.c
drivers/lightnvm/pblk-rl.c
drivers/lightnvm/pblk.h