lightnvm: implement nvm_submit_ppa_list
authorMatias Bjørling <m@bjorling.me>
Fri, 6 May 2016 18:02:56 +0000 (20:02 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 6 May 2016 18:51:10 +0000 (12:51 -0600)
commit1145e6351a9fefe0965df4c6dba2a04156dc47d2
tree4c92d803aea93a7f85de048de36e1981550add98
parentecfb40c6aa5691257054eac81bc8bdfd5442e8e5
lightnvm: implement nvm_submit_ppa_list

The nvm_submit_ppa function assumes that users manage all plane
blocks as a single block. Extend the API with nvm_submit_ppa_list
to allow the user to send its own ppa list. If the user submits more
than a single PPA, the user must take care to allocate and free
the corresponding ppa list.

Reviewed by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
include/linux/lightnvm.h