diff options
author | Javier González <jg@lightnvm.io> | 2016-05-06 20:03:20 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-05-06 20:51:10 +0200 |
commit | 6d5be9590b5e15124e3c8b319c8d7ce01abcf07d (patch) | |
tree | 7d3203bb0aa3a59de19f4cbb4de1c8b4502dd63c /drivers/lightnvm/sysblk.c | |
parent | lightnvm: add is_cached entry to struct ppa_addr (diff) | |
download | linux-6d5be9590b5e15124e3c8b319c8d7ce01abcf07d.tar.xz linux-6d5be9590b5e15124e3c8b319c8d7ce01abcf07d.zip |
lightnvm: rename nr_pages to nr_ppas on nvm_rq
The number of ppas contained on a request is not necessarily the number
of pages that it maps to neither on the target nor on the device side.
In order to avoid confusion, rename nr_pages to nr_ppas since it is what
the variable actually contains.
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/sysblk.c')
-rw-r--r-- | drivers/lightnvm/sysblk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/sysblk.c b/drivers/lightnvm/sysblk.c index b98ca1998da5..994697ac786e 100644 --- a/drivers/lightnvm/sysblk.c +++ b/drivers/lightnvm/sysblk.c @@ -280,7 +280,7 @@ static int nvm_set_bb_tbl(struct nvm_dev *dev, struct sysblk_scan *s, int type) nvm_set_rqd_ppalist(dev, &rqd, s->ppas, s->nr_ppas, 1); nvm_generic_to_addr_mode(dev, &rqd); - ret = dev->ops->set_bb_tbl(dev, &rqd.ppa_addr, rqd.nr_pages, type); + ret = dev->ops->set_bb_tbl(dev, &rqd.ppa_addr, rqd.nr_ppas, type); nvm_free_rqd_ppalist(dev, &rqd); if (ret) { pr_err("nvm: sysblk failed bb mark\n"); |