summaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm/pblk.h
diff options
context:
space:
mode:
authorJavier González <jg@lightnvm.io>2017-06-26 11:57:21 +0200
committerJens Axboe <axboe@kernel.dk>2017-06-27 00:27:39 +0200
commitf680f19aa6dbbbabf499250d49f18a426b14f1c2 (patch)
tree78dbe23eb94ec0680ed1f5ece1bec7916d124a23 /drivers/lightnvm/pblk.h
parentlightnvm: pblk: issue multiplane reads if possible (diff)
downloadlinux-f680f19aa6dbbbabf499250d49f18a426b14f1c2.tar.xz
linux-f680f19aa6dbbbabf499250d49f18a426b14f1c2.zip
lightnvm: pblk: simplify meta. memory allocation
smeta size will always be suitable for a kmalloc allocation. Simplify the code and leave the vmalloc fallback only for emeta, where the pblk configuration has an impact. Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <matias@cnexlabs.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
-rw-r--r--drivers/lightnvm/pblk.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h
index 6dc58d360077..3fe8b05e3de0 100644
--- a/drivers/lightnvm/pblk.h
+++ b/drivers/lightnvm/pblk.h
@@ -446,7 +446,6 @@ struct pblk_line_mgmt {
__le32 *vsc_list; /* Valid sector counts for all lines */
/* Metadata allocation type: VMALLOC | KMALLOC */
- int smeta_alloc_type;
int emeta_alloc_type;
/* Pre-allocated metadata for data lines */