summaryrefslogtreecommitdiffstats
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
authorMatias Bjørling <m@bjorling.me>2016-02-20 08:52:41 +0100
committerJens Axboe <axboe@fb.com>2016-03-03 14:46:35 -0700
commit4ece44af733ff63a7cd12aaa8c85afb6d9fdc664 (patch)
treeaf1736335c8f7abfaebaa3dba63cc5bee77cbd20 /include/linux/lightnvm.h
parent6adb03de406e8c92579c2e4b11640841fa908277 (diff)
downloadlinux-4ece44af733ff63a7cd12aaa8c85afb6d9fdc664.tar.gz
linux-4ece44af733ff63a7cd12aaa8c85afb6d9fdc664.tar.bz2
linux-4ece44af733ff63a7cd12aaa8c85afb6d9fdc664.zip
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 'include/linux/lightnvm.h')
-rw-r--r--include/linux/lightnvm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index 7fa1838f7356..8f8a74328f20 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -337,8 +337,8 @@ struct nvm_dev {
int lps_per_blk;
int *lptbl;
- unsigned long total_pages;
unsigned long total_blocks;
+ unsigned long total_secs;
int nr_luns;
unsigned max_pages_per_blk;