]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit370745b4a24f5ccc9801a4e20883ac7bd9c5ef9b
treea45a697e8fc1a36a3e701abc59e2a5a1c999d4fd
parenta8558a82354029cef23e0a8d36c12a57a61dc1c5
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