diff options
author | Javier González <jg@lightnvm.io> | 2016-11-28 22:38:54 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-11-29 20:12:51 +0100 |
commit | bb3149792e0ed52cf5f457dda4c9bf9c5bda1542 (patch) | |
tree | 1b85ed6347013add8d1aa00c912e6674210b27c5 /drivers/lightnvm/gennvm.c | |
parent | nvme: lightnvm: attach lightnvm sysfs to nvme block device (diff) | |
download | linux-bb3149792e0ed52cf5f457dda4c9bf9c5bda1542.tar.xz linux-bb3149792e0ed52cf5f457dda4c9bf9c5bda1542.zip |
lightnvm: enable to send hint to erase command
Erases might be subject to host hints. An example is multi-plane
programming to erase blocks in parallel. Enable targets to specify this
hint.
Signed-off-by: Javier González <javier@cnexlabs.com>
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 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/lightnvm/gennvm.c b/drivers/lightnvm/gennvm.c index b74174c6d021..730d7361f870 100644 --- a/drivers/lightnvm/gennvm.c +++ b/drivers/lightnvm/gennvm.c @@ -593,12 +593,11 @@ static int gen_submit_io(struct nvm_dev *dev, struct nvm_rq *rqd) return dev->ops->submit_io(dev, rqd); } -static int gen_erase_blk(struct nvm_dev *dev, struct nvm_block *blk, - unsigned long flags) +static int gen_erase_blk(struct nvm_dev *dev, struct nvm_block *blk, int flags) { struct ppa_addr addr = block_to_ppa(dev, blk); - return nvm_erase_ppa(dev, &addr, 1); + return nvm_erase_ppa(dev, &addr, 1, flags); } static int gen_reserve_lun(struct nvm_dev *dev, int lunid) |