lightnvm: remove struct nvm_dev->total_blocks
authorMatias Bjørling <m@bjorling.me>
Sat, 20 Feb 2016 07:52:42 +0000 (08:52 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 3 Mar 2016 21:46:35 +0000 (14:46 -0700)
commited2a92a6b4b8453a0c3a20da641ec79e4b3d7ca4
treeaafd1639c001a5cbd83041c4b19b1bc17a0b4bb9
parent4ece44af733ff63a7cd12aaa8c85afb6d9fdc664
lightnvm: remove struct nvm_dev->total_blocks

The struct nvm_dev->total_blocks was only used for calculating total
sectors. Remove and instead calculate total sectors from the number of
luns and its sectors.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
This page took 0.024229 seconds and 5 git commands to generate.