linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] block: Fix various comments
@ 2020-09-05  9:41 Miaohe Lin
  0 siblings, 0 replies; 2+ messages in thread
From: Miaohe Lin @ 2020-09-05  9:41 UTC (permalink / raw)
  To: axboe, tj; +Cc: linux-block, linux-kernel, linmiaohe

Fix various comments including wrong function names, global variable name
and so on.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 block/bio.c          | 2 +-
 block/blk-cgroup.c   | 2 +-
 block/blk-mq.c       | 4 ++--
 block/blk-throttle.c | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/block/bio.c b/block/bio.c
index a323a5446221..8c16a6744c72 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -174,7 +174,7 @@ struct bio_vec *bvec_alloc(gfp_t gfp_mask, int nr, unsigned long *idx,
 	struct bio_vec *bvl;
 
 	/*
-	 * see comment near bvec_array define!
+	 * see comment near bvec_slabs define!
 	 */
 	switch (nr) {
 	case 1:
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
index c195365c9817..58c57ada3b79 100644
--- a/block/blk-cgroup.c
+++ b/block/blk-cgroup.c
@@ -1816,7 +1816,7 @@ EXPORT_SYMBOL_GPL(bio_associate_blkg_from_css);
  * @bio: target bio
  *
  * Associate @bio with the blkg found from the bio's css and request_queue.
- * If one is not found, bio_lookup_blkg() creates the blkg.  If a blkg is
+ * If one is not found, blkg_lookup_create() creates the blkg.  If a blkg is
  * already associated, the css is reused and association redone as the
  * request_queue may have changed.
  */
diff --git a/block/blk-mq.c b/block/blk-mq.c
index d089825f9cd1..a6e0a360b5f1 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1650,7 +1650,7 @@ void blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async)
 	/*
 	 * When queue is quiesced, we may be switching io scheduler, or
 	 * updating nr_hw_queues, or other things, and we can't run queue
-	 * any more, even __blk_mq_hctx_has_pending() can't be called safely.
+	 * any more, even blk_mq_hctx_has_pending() can't be called safely.
 	 *
 	 * And queue will be rerun in blk_mq_unquiesce_queue() if it is
 	 * quiesced.
@@ -1666,7 +1666,7 @@ void blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async)
 EXPORT_SYMBOL(blk_mq_run_hw_queue);
 
 /**
- * blk_mq_run_hw_queue - Run all hardware queues in a request queue.
+ * blk_mq_run_hw_queues - Run all hardware queues in a request queue.
  * @q: Pointer to the request queue to run.
  * @async: If we want to run the queue asynchronously.
  */
diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index fee3325edf27..207c9a477165 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -182,7 +182,7 @@ struct throtl_grp {
 	struct blkg_rwstat stat_ios;
 };
 
-/* We measure latency for request size from <= 4k to >= 1M */
+/* We measure latency for request size from >= 4k to <= 1M */
 #define LATENCY_BUCKET_SIZE 9
 
 struct latency_bucket {
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] block: Fix various comments
@ 2020-09-24 13:12 linmiaohe
  0 siblings, 0 replies; 2+ messages in thread
From: linmiaohe @ 2020-09-24 13:12 UTC (permalink / raw)
  To: axboe, tj; +Cc: linux-block, linux-kernel

Friendly ping :)

> Fix various comments including wrong function names, global variable name and so on.
>
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
> ---
>  block/bio.c          | 2 +-
>  block/blk-cgroup.c   | 2 +-
>  block/blk-mq.c       | 4 ++--
>  block/blk-throttle.c | 2 +-
>  4 files changed, 5 insertions(+), 5 deletions(-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-24 13:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-05  9:41 [PATCH] block: Fix various comments Miaohe Lin
2020-09-24 13:12 linmiaohe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).