aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm/core.c
diff options
context:
space:
mode:
authorMatias Bjørling <m@bjorling.me>2016-02-20 02:52:41 -0500
committerJens Axboe <axboe@fb.com>2016-03-03 16:46:35 -0500
commit4ece44af733ff63a7cd12aaa8c85afb6d9fdc664 (patch)
treeaf1736335c8f7abfaebaa3dba63cc5bee77cbd20 /drivers/lightnvm/core.c
parent6adb03de406e8c92579c2e4b11640841fa908277 (diff)
lightnvm: rename ->nr_pages to ->nr_sects
The struct rrpc->nr_pages can easily be interpreted as the number of flash pages allocated to rrpc, while it is the nr_sects. Make sure that this is reflected from the variable name. Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm/core.c')
-rw-r--r--drivers/lightnvm/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c
index 968ba7ed4158..1cb4b331c3e8 100644
--- a/drivers/lightnvm/core.c
+++ b/drivers/lightnvm/core.c
@@ -467,7 +467,7 @@ static int nvm_core_init(struct nvm_dev *dev)
467 dev->blks_per_lun * 467 dev->blks_per_lun *
468 dev->luns_per_chnl * 468 dev->luns_per_chnl *
469 dev->nr_chnls; 469 dev->nr_chnls;
470 dev->total_pages = dev->total_blocks * dev->pgs_per_blk; 470 dev->total_secs = dev->total_blocks * dev->sec_per_blk;
471 INIT_LIST_HEAD(&dev->online_targets); 471 INIT_LIST_HEAD(&dev->online_targets);
472 mutex_init(&dev->mlock); 472 mutex_init(&dev->mlock);
473 473