diff options
author | Javier González <jg@lightnvm.io> | 2017-06-26 05:57:21 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-26 18:27:39 -0400 |
commit | f680f19aa6dbbbabf499250d49f18a426b14f1c2 (patch) | |
tree | 78dbe23eb94ec0680ed1f5ece1bec7916d124a23 /drivers/lightnvm/pblk.h | |
parent | f9c101523da75cd483b95f04c21242bb83960d93 (diff) |
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 'drivers/lightnvm/pblk.h')
-rw-r--r-- | drivers/lightnvm/pblk.h | 1 |
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 { | |||
446 | __le32 *vsc_list; /* Valid sector counts for all lines */ | 446 | __le32 *vsc_list; /* Valid sector counts for all lines */ |
447 | 447 | ||
448 | /* Metadata allocation type: VMALLOC | KMALLOC */ | 448 | /* Metadata allocation type: VMALLOC | KMALLOC */ |
449 | int smeta_alloc_type; | ||
450 | int emeta_alloc_type; | 449 | int emeta_alloc_type; |
451 | 450 | ||
452 | /* Pre-allocated metadata for data lines */ | 451 | /* Pre-allocated metadata for data lines */ |