lightnvm: pblk: use right flag for GC allocation
authorJavier González <javier@cnexlabs.com>
Fri, 13 Oct 2017 12:46:02 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commit7d327a9ed6c4dca341ebf99012e0a6b80a3050e6
treeb0418b59a3131f93d1c0315e3cc0b9a5b9463595
parenta1121176ff757e3c073490a69608ea0b18a00ec1
lightnvm: pblk: use right flag for GC allocation

The data buffer for the GC path allocates virtual memory through
vmalloc. When this change was introduced, a flag signaling kmalloc'ed
memory was wrongly introduced. Use the right flag when creating a bio
from this buffer.

Fixes: de54e703a422 ("lightnvm: pblk: use vmalloc for GC data buffer")
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-read.c