lightnvm: unconverted ppa returned in get_bb_tbl
authorMatias Bjørling <m@bjorling.me>
Sat, 28 Nov 2015 15:49:27 +0000 (16:49 +0100)
committerJens Axboe <axboe@fb.com>
Sun, 29 Nov 2015 21:34:58 +0000 (14:34 -0700)
commit08236c6bb2980561fba657c58fdc76f2865f236c
treea45a697e8fc1a36a3e701abc59e2a5a1c999d4fd
parent09f2e716096811081b204c6afd6264c2e64d1210
lightnvm: unconverted ppa returned in get_bb_tbl

The get_bb_tbl function takes ppa as a generic address, which is
converted to the ppa device address within the device driver. When
the update_bbtbl callback is called from get_bb_tbl, the device
specific ppa is used, instead of the generic ppa.

Make sure to pass the generic ppa.

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