1
0
Fork 0

lightnvm: use flags in rrpc_get_blk

rrpc_get_blk use constant 0 as the input parameter
of nvm_get_blk, this may result in getting gc block
failed unexpectedly.

Signed-off-by: Wenwei Tao <ww.tao0320@gmail.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
hifive-unleashed-5.1
Wenwei Tao 2015-12-06 11:25:43 +01:00 committed by Jens Axboe
parent 43d1c0eb7e
commit f27a629953
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ static struct rrpc_block *rrpc_get_blk(struct rrpc *rrpc, struct rrpc_lun *rlun,
struct nvm_block *blk;
struct rrpc_block *rblk;
blk = nvm_get_blk(rrpc->dev, rlun->parent, 0);
blk = nvm_get_blk(rrpc->dev, rlun->parent, flags);
if (!blk)
return NULL;