aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
authorJavier González <jg@lightnvm.io>2016-05-06 20:03:21 +0200
committerJens Axboe <axboe@fb.com>2016-05-06 12:51:10 -0600
commit116f7d4a21fe450efc652c4850eb27cda36c9db0 (patch)
treefb8ef533ff5d272f5b1ef496f357cc538a5c8204 /include/linux/lightnvm.h
parentlightnvm: rename nr_pages to nr_ppas on nvm_rq (diff)
downloadlinux-dev-116f7d4a21fe450efc652c4850eb27cda36c9db0.tar.xz
linux-dev-116f7d4a21fe450efc652c4850eb27cda36c9db0.zip
lightnvm: reserved space calculation incorrect
The nvm_dev->max_pages_per_blk variable was removed in favor of the new nvm->sec_per_blk variable. The ->max_pages_per_blk variable was still used in rrpc_capacity, reporting the reserved capacity to zero. Replace with ->sec_per_blk to calculate the reserved area again. Signed-off-by: Javier González <javier@cnexlabs.com> Updated patch description. Was "lightnvm: eliminate redundant variable" 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.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index b2991c724640..ef2c7d2e76c4 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -351,7 +351,6 @@ struct nvm_dev {
unsigned long total_blocks;
unsigned long total_secs;
int nr_luns;
- unsigned max_pages_per_blk;
unsigned long *lun_map;
void *dma_pool;