lightnvm: pblk: decouple bad block from line alloc
authorJavier González <jg@lightnvm.io>
Mon, 26 Jun 2017 09:57:22 +0000 (11:57 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2017 22:27:39 +0000 (16:27 -0600)
commitdffdd960ee16d0515d32701301760a817a25d52b
treef2fc2f7a9bf4a880541e4f781336319e2fd3d2f1
parentf680f19aa6dbbbabf499250d49f18a426b14f1c2
lightnvm: pblk: decouple bad block from line alloc

Decouple bad block discovery from line allocation logic. This allows to
return meaningful error codes in case of bad block discovery failure.

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-init.c