]> git.baikalelectronics.ru Git - kernel.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)
commitf402b3f273a9796217e4dd9a7170d53b1bde31b6
treef910e8f9b94871453ab8f0620951de873228500d
parent74c4a4f2e4c0d80de6581002209b29054135ebfa
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