]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
lightnvm: refactor set_bb_tbl for accepting ppa list
authorMatias Bjørling <m@bjorling.me>
Fri, 6 May 2016 18:03:09 +0000 (20:03 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 6 May 2016 18:51:10 +0000 (12:51 -0600)
commit00ee6cc3b74bdb4dfb71838046517beb6839647c
treef910e8f9b94871453ab8f0620951de873228500d
parenta63d5cf2031cc84443440caf32c175b3548ac6b8
lightnvm: refactor set_bb_tbl for accepting ppa list

The set_bb_tbl takes struct nvm_rq and only uses its ppa_list and
nr_pages internally. Instead, make these two variables explicit.
This allows a user to call it without initializing a struct nvm_rq
first.

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