2018-11-20 07:18:48

by suhua

[permalink] [raw]
Subject: [PATCH] lightnvm: pblk: modify a comment

Does the code want to express that it should be like this?

Signed-off-by: Hua Su <[email protected]>
---
drivers/lightnvm/pblk-rb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/lightnvm/pblk-rb.c b/drivers/lightnvm/pblk-rb.c
index b1f4b51783f4..9f7fa0fe9c77 100644
--- a/drivers/lightnvm/pblk-rb.c
+++ b/drivers/lightnvm/pblk-rb.c
@@ -147,7 +147,7 @@ int pblk_rb_init(struct pblk_rb *rb, unsigned int size, unsigned int threshold,

/*
* Initialize rate-limiter, which controls access to the write buffer
- * but user and GC I/O
+ * by user and GC I/O
*/
pblk_rl_init(&pblk->rl, rb->nr_entries);

--
2.19.1



2018-11-20 07:19:53

by Matias Bjørling

[permalink] [raw]
Subject: Re: [PATCH] lightnvm: pblk: modify a comment

On 11/20/2018 08:16 AM, Hua Su wrote:
> Does the code want to express that it should be like this?
>
> Signed-off-by: Hua Su <[email protected]>
> ---
> drivers/lightnvm/pblk-rb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/lightnvm/pblk-rb.c b/drivers/lightnvm/pblk-rb.c
> index b1f4b51783f4..9f7fa0fe9c77 100644
> --- a/drivers/lightnvm/pblk-rb.c
> +++ b/drivers/lightnvm/pblk-rb.c
> @@ -147,7 +147,7 @@ int pblk_rb_init(struct pblk_rb *rb, unsigned int size, unsigned int threshold,
>
> /*
> * Initialize rate-limiter, which controls access to the write buffer
> - * but user and GC I/O
> + * by user and GC I/O
> */
> pblk_rl_init(&pblk->rl, rb->nr_entries);
>
>

Thanks Hue. Applied for 4.21.