lightnvm: pblk: set line bitmap check under debug
authorJavier González <jg@lightnvm.io>
Fri, 30 Jun 2017 15:56:43 +0000 (17:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Jun 2017 17:08:18 +0000 (11:08 -0600)
commita84ebb837b419787c2ece74efa566c998929cead
treed2479e93d9192bf36faac59229863ea41c3e88d4
parent076984669db8476c3c9a9f6d0c59a8e2c7e0092f
lightnvm: pblk: set line bitmap check under debug

Do bitmap checks only when debug mode is enable. The line bitmap used
for mapping to physical addresses is fairly large (~512KB) and it is
expensive to do this checks on the fast path.

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