Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1281658 > unrolled thread

[PATCH] lightnvm: use flags as input parameter

Started byWenwei Tao <ww.tao0320@gmail.com>
First post2015-12-02 12:30 +0100
Last post2015-12-02 12:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] lightnvm: use flags as input parameter Wenwei Tao <ww.tao0320@gmail.com> - 2015-12-02 12:30 +0100
    Re: [PATCH] lightnvm: use flags as input parameter Matias Bjørling <mb@lightnvm.io> - 2015-12-02 12:40 +0100

#1281658 — [PATCH] lightnvm: use flags as input parameter

FromWenwei Tao <ww.tao0320@gmail.com>
Date2015-12-02 12:30 +0100
Subject[PATCH] lightnvm: use flags as input parameter
Message-ID<qBdLJ-6vD-35@gated-at.bofh.it>
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>
---
 drivers/lightnvm/rrpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c
index 75e59c3..d606c7a 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;
 
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1281682

FromMatias Bjørling <mb@lightnvm.io>
Date2015-12-02 12:40 +0100
Message-ID<qBdVo-6zq-17@gated-at.bofh.it>
In reply to#1281658
On 12/02/2015 12:25 PM, Wenwei Tao wrote:
> 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>
> ---
>   drivers/lightnvm/rrpc.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c
> index 75e59c3..d606c7a 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;
>
>

Thanks Tao, applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web