lightnvm: pblk: fix read_bitmap for 32bit archs
authorMatias Bjørling <mb@lightnvm.io>
Fri, 13 Jul 2018 08:48:40 +0000 (10:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Jul 2018 14:14:39 +0000 (08:14 -0600)
commit921aebfac0871e8212913039d5241c0b3527eddb
treec513e0b6b4196b84e56a1374f252cc5fa63fc91d
parent242e461fb628bb63763e0bb2788d52ea054f8721
lightnvm: pblk: fix read_bitmap for 32bit archs

If using pblk on a 32bit architecture, and there is a need to
perform a partial read, the partial read bitmap will only have
allocated 32 entries, where as 64 are needed.

Make sure that the read_bitmap is initialized to 64bits on 32bit
architectures as well.

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