lightnvm: return the get_bb_tbl return value
authorMatias Bjørling <m@bjorling.me>
Tue, 12 Jan 2016 06:49:22 +0000 (07:49 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jan 2016 15:21:16 +0000 (08:21 -0700)
commit22513215b83d62a7f5e3494209b69d4d8c266ab8
treefa1c8bdb19af3cc41f86fd3fc673c885276c4a6c
parent91276162de9476b8ff32d9452e849210e5dd09e9
lightnvm: return the get_bb_tbl return value

During get_bb_tbl, a callback is used to allow an user-specific scan
function to be called. The callback may return an error, and in that
case, the return value is overridden. However, the callback error is
needed when the fault is a user error and not a kernel error. For
example, when a user tries to initialize the same device twice. The
get_bb_tbl callback should be able to communicate this.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/lightnvm.c