lightnvm: pblk: simplify meta. memory allocation
authorJavier González <jg@lightnvm.io>
Mon, 26 Jun 2017 09:57:21 +0000 (11:57 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2017 22:27:39 +0000 (16:27 -0600)
commitf680f19aa6dbbbabf499250d49f18a426b14f1c2
tree78dbe23eb94ec0680ed1f5ece1bec7916d124a23
parentf9c101523da75cd483b95f04c21242bb83960d93
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>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-init.c
drivers/lightnvm/pblk-write.c
drivers/lightnvm/pblk.h