diff options
author | Matias Bjørling <m@bjorling.me> | 2016-02-20 02:52:41 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-03-03 16:46:35 -0500 |
commit | 4ece44af733ff63a7cd12aaa8c85afb6d9fdc664 (patch) | |
tree | af1736335c8f7abfaebaa3dba63cc5bee77cbd20 /include/linux/lightnvm.h | |
parent | 6adb03de406e8c92579c2e4b11640841fa908277 (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 'include/linux/lightnvm.h')
-rw-r--r-- | include/linux/lightnvm.h | 2 |
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 { | |||
337 | int lps_per_blk; | 337 | int lps_per_blk; |
338 | int *lptbl; | 338 | int *lptbl; |
339 | 339 | ||
340 | unsigned long total_pages; | ||
341 | unsigned long total_blocks; | 340 | unsigned long total_blocks; |
341 | unsigned long total_secs; | ||
342 | int nr_luns; | 342 | int nr_luns; |
343 | unsigned max_pages_per_blk; | 343 | unsigned max_pages_per_blk; |
344 | 344 | ||