2022-09-18 09:57:19

by Jilin Yuan

[permalink] [raw]
Subject: [PATCH] bcache: fix repeated words in comments

Delete the redundant word 'by'.

Signed-off-by: Jilin Yuan <[email protected]>
---
drivers/md/bcache/bset.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/bcache/bset.c b/drivers/md/bcache/bset.c
index 94d38e8a59b3..6a24a327dce2 100644
--- a/drivers/md/bcache/bset.c
+++ b/drivers/md/bcache/bset.c
@@ -1264,7 +1264,7 @@ static void __btree_sort(struct btree_keys *b, struct btree_iter *iter,
*
* Don't worry event 'out' is allocated from mempool, it can
* still be swapped here. Because state->pool is a page mempool
- * creaated by by mempool_init_page_pool(), which allocates
+ * creaated by mempool_init_page_pool(), which allocates
* pages by alloc_pages() indeed.
*/

--
2.36.1


2022-09-18 11:38:01

by Coly Li

[permalink] [raw]
Subject: Re: [PATCH] bcache: fix repeated words in comments



> 2022年9月18日 17:45,Jilin Yuan <[email protected]> 写道:
>
> Delete the redundant word 'by'.
>
> Signed-off-by: Jilin Yuan <[email protected]>
> ---
> drivers/md/bcache/bset.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/md/bcache/bset.c b/drivers/md/bcache/bset.c
> index 94d38e8a59b3..6a24a327dce2 100644
> --- a/drivers/md/bcache/bset.c
> +++ b/drivers/md/bcache/bset.c
> @@ -1264,7 +1264,7 @@ static void __btree_sort(struct btree_keys *b, struct btree_iter *iter,
> *
> * Don't worry event 'out' is allocated from mempool, it can
> * still be swapped here. Because state->pool is a page mempool
> - * creaated by by mempool_init_page_pool(), which allocates
> + * creaated by mempool_init_page_pool(), which allocates
> * pages by alloc_pages() indeed.
> */
>
> --
> 2.36.1
>

Oops, the applying failed because Jules already posted a similar fix, and his version is better because the typo “creaated” also fixed to “created”.

So this patch won’t go into my for-next. Just FYI.

Thanks.

Coly Li

2022-09-18 12:16:26

by Coly Li

[permalink] [raw]
Subject: Re: [PATCH] bcache: fix repeated words in comments



> 2022年9月18日 17:45,Jilin Yuan <[email protected]> 写道:
>
> Delete the redundant word 'by'.
>
> Signed-off-by: Jilin Yuan <[email protected]>

Added into my for-next queue.

Thanks.

Coly Li


> ---
> drivers/md/bcache/bset.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/md/bcache/bset.c b/drivers/md/bcache/bset.c
> index 94d38e8a59b3..6a24a327dce2 100644
> --- a/drivers/md/bcache/bset.c
> +++ b/drivers/md/bcache/bset.c
> @@ -1264,7 +1264,7 @@ static void __btree_sort(struct btree_keys *b, struct btree_iter *iter,
> *
> * Don't worry event 'out' is allocated from mempool, it can
> * still be swapped here. Because state->pool is a page mempool
> - * creaated by by mempool_init_page_pool(), which allocates
> + * creaated by mempool_init_page_pool(), which allocates
> * pages by alloc_pages() indeed.
> */
>
> --
> 2.36.1
>