]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0dbe3780bb16053ef590a70c1597e678fb8a3afe
treec513e0b6b4196b84e56a1374f252cc5fa63fc91d
parentc88f9ead464ac45ecb60989979c4f6350bbfb3dd
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