diff options
author | Matias Bjørling <m@bjorling.me> | 2016-01-12 07:49:28 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-01-12 16:21:17 +0100 |
commit | 81e681d3f7424fc2f03b6269e15c63131473c98f (patch) | |
tree | 9ca8a01523dbc3775f2d89e7772dd1b2f4f34b00 /drivers/lightnvm/gennvm.c | |
parent | lightnvm: move the pages per block check out of the loop (diff) | |
download | linux-81e681d3f7424fc2f03b6269e15c63131473c98f.tar.xz linux-81e681d3f7424fc2f03b6269e15c63131473c98f.zip |
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>
Diffstat (limited to 'drivers/lightnvm/gennvm.c')
-rw-r--r-- | drivers/lightnvm/gennvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/gennvm.c b/drivers/lightnvm/gennvm.c index 12ddcaa343e9..262da6dd9056 100644 --- a/drivers/lightnvm/gennvm.c +++ b/drivers/lightnvm/gennvm.c @@ -396,7 +396,7 @@ static int gennvm_erase_blk(struct nvm_dev *dev, struct nvm_block *blk, { struct ppa_addr addr = block_to_ppa(dev, blk); - return nvm_erase_ppa(dev, addr); + return nvm_erase_ppa(dev, &addr, 1); } static struct nvm_lun *gennvm_get_lun(struct nvm_dev *dev, int lunid) |