]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: enable line minor version detection
authorMatias Bjørling <mb@lightnvm.io>
Fri, 13 Jul 2018 08:48:38 +0000 (10:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Jul 2018 14:14:32 +0000 (08:14 -0600)
commitc3d4f2d6fe304e9b91835cd37c1ce3c7006b2dbc
tree1452d1e7e27a8dbcb7caa843fbf807ef8ad9cb85
parent952cb9c8d8950352dd1a5baaff76d829c6b331be
lightnvm: pblk: enable line minor version detection

When recovering a line, an extra check was added when debugging was
active, such that minor version where also checked. Unfortunately,
this used the ifdef NVM_DEBUG, which is not correct.

Instead use the proper DEBUG def, and now that it compiles, also fix
the variable.

Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Fixes: 134456dcd9afc ("lightnvm: pblk: check data lines version on recovery")
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-recovery.c