diff options
author | Wenwei Tao <ww.tao0320@gmail.com> | 2015-12-06 11:25:43 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-12-07 17:14:19 +0100 |
commit | f27a62995330fdc5f804acf2ebf1444f9025c879 (patch) | |
tree | ae95c62bcce8b8ca5d10cc28882f8db4e5564492 /drivers/lightnvm/rrpc.c | |
parent | block: detach bdev inode from its wb in __blkdev_put() (diff) | |
download | linux-f27a62995330fdc5f804acf2ebf1444f9025c879.tar.xz linux-f27a62995330fdc5f804acf2ebf1444f9025c879.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/lightnvm/rrpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c index 75e59c3a3f96..d606c7a50b71 100644 --- a/drivers/lightnvm/rrpc.c +++ b/drivers/lightnvm/rrpc.c @@ -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; |