]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit917d8852c737d3de9e1445e361f377cce349e8ef
treeaafd1639c001a5cbd83041c4b19b1bc17a0b4bb9
parent9cce4119592723590b4a918ea147ef8306332bf4
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