lightnvm: support multiple ppas in nvm_erase_ppa
authorMatias Bjørling <m@bjorling.me>
Tue, 12 Jan 2016 06:49:28 +0000 (07:49 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jan 2016 15:21:17 +0000 (08:21 -0700)
commit81e681d3f7424fc2f03b6269e15c63131473c98f
tree9ca8a01523dbc3775f2d89e7772dd1b2f4f34b00
parent4b79beb4c36d697e940e9f70d72399c71230a418
lightnvm: support multiple ppas in nvm_erase_ppa

Sometimes a user want to erase multiple PPAs at the same time. Extend
nvm_erase_ppa to take multiple ppas and number of ppas to be erased.

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