Skip to contentSkip to conversation

block: delete or fix duplicated words

PATCH Applied Randy Dunlap 2 participants 9 messages Jul 31, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover block: delete or fix duplicated words

Drop doubled words or fix them to what they should be. Also fix a few typos and kernel-doc notation.

 block/bfq-iosched.c  |    2 +-
 block/bio.c          |    4 ++--
 block/blk-mq-sched.c |    2 +-
 block/blk-mq.c       |    2 +-
 block/blk-timeout.c  |    2 +-
 block/elevator.c     |    4 ++--
 block/genhd.c        |    6 +++---
 7 files changed, 11 insertions(+), 11 deletions(-)
#1 lore raw

PATCH 1/7 block: bfq-iosched: fix duplicated word

Change "at at" to "at a".

---
 block/bfq-iosched.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/bfq-iosched.c +1 -1
@@ -4714,7 +4714,7 @@ static struct request *__bfq_dispatch_re
 	 * some unlucky request wait for as long as the device
 	 * wishes.
 	 *
-	 * Of course, serving one request at at time may cause loss of
+	 * Of course, serving one request at a time may cause loss of
 	 * throughput.
 	 */
 	if (bfqd->strict_guarantees && bfqd->rq_in_driver > 0)
#2 lore raw

PATCH 2/7 block: bio: delete duplicated words

In reply to Randy Dunlap

Drop the repeated words "a" and "the".

---
 block/bio.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
block/bio.c +2 -2
@@ -862,7 +862,7 @@ EXPORT_SYMBOL(bio_add_pc_page);
  * @same_page: return if the segment has been merged inside the same page
  *
  * Try to add the data at @page + @off to the last bvec of @bio.  This is a
- * a useful optimisation for file systems with a block size smaller than the
+ * useful optimisation for file systems with a block size smaller than the
  * page size.
  *
  * Warn if (@len, @off) crosses pages in case that @same_page is true.
@@ -988,7 +988,7 @@ static int __bio_iov_bvec_add_pages(stru
  * Pins pages from *iter and appends them to @bio's bvec array. The
  * pages will have to be released using put_page() when done.
  * For multi-segment *iter, this function only adds pages from the
- * the next non-empty segment of the iov iterator.
+ * next non-empty segment of the iov iterator.
  */
 static int __bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter)
 {
#3 lore raw

PATCH 3/7 block: elevator: delete duplicated word and fix typos

In reply to Randy Dunlap

Drop the repeated word "the".
Fix typos of "features" and "specified".

---
 block/elevator.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
block/elevator.c +2 -2
@@ -95,8 +95,8 @@ static inline bool elv_support_features(
  * @name: Elevator name to test
  * @required_features: Features that the elevator must provide
  *
- * Return true is the elevator @e name matches @name and if @e provides all the
- * the feratures spcified by @required_features.
+ * Return true if the elevator @e name matches @name and if @e provides all
+ * the features specified by @required_features.
  */
 static bool elevator_match(const struct elevator_type *e, const char *name,
 			   unsigned int required_features)
#4 lore raw

PATCH 4/7 block: genhd: delete duplicated words

In reply to Randy Dunlap

Drop the repeated word "to" in multiple places.

---
 block/genhd.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
block/genhd.c +3 -3
@@ -1773,7 +1773,7 @@ EXPORT_SYMBOL(__alloc_disk_node);
 
 /**
  * get_disk_and_module - increments the gendisk and gendisk fops module refcount
- * @disk: the struct gendisk to to increment the refcount for
+ * @disk: the struct gendisk to increment the refcount for
  *
  * This increments the refcount for the struct gendisk, and the gendisk's
  * fops module owner.
@@ -1802,7 +1802,7 @@ EXPORT_SYMBOL(get_disk_and_module);
 
 /**
  * put_disk - decrements the gendisk refcount
- * @disk: the struct gendisk to to decrement the refcount for
+ * @disk: the struct gendisk to decrement the refcount for
  *
  * This decrements the refcount for the struct gendisk. When this reaches 0
  * we'll have disk_release() called.
@@ -1819,7 +1819,7 @@ EXPORT_SYMBOL(put_disk);
 
 /**
  * put_disk_and_module - decrements the module and gendisk refcount
- * @disk: the struct gendisk to to decrement the refcount for
+ * @disk: the struct gendisk to decrement the refcount for
  *
  * This is a counterpart of get_disk_and_module() and thus also of
  * get_gendisk().
#5 lore raw

PATCH 5/7 block: blk-mq: delete duplicated word

In reply to Randy Dunlap

Drop the repeated word "the".

---
 block/blk-mq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-mq.c +1 -1
@@ -388,7 +388,7 @@ retry:
 		/*
 		 * Give up the CPU and sleep for a random short time to ensure
 		 * that thread using a realtime scheduling class are migrated
-		 * off the the CPU, and thus off the hctx that is going away.
+		 * off the CPU, and thus off the hctx that is going away.
 		 */
 		msleep(3);
 		goto retry;
#6 lore raw

PATCH 6/7 block: blk-mq-sched: delete duplicated word

In reply to Randy Dunlap

Drop the repeated word "to".

---
 block/blk-mq-sched.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-mq-sched.c +1 -1
@@ -225,7 +225,7 @@ static struct blk_mq_ctx *blk_mq_next_ct
  * restart queue if .get_budget() returns BLK_STS_NO_RESOURCE.
  *
  * Returns -EAGAIN if hctx->dispatch was found non-empty and run_work has to
- * to be run again.  This is necessary to avoid starving flushes.
+ * be run again.  This is necessary to avoid starving flushes.
  */
 static int blk_mq_do_dispatch_ctx(struct blk_mq_hw_ctx *hctx)
 {
#7 lore raw

PATCH 7/7 block: blk-timeout: delete duplicated word

In reply to Randy Dunlap

Drop the repeated word "request".
Change to the correct kernel-doc notation for function name separtor.

---
 block/blk-timeout.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-timeout.c +1 -1
@@ -68,7 +68,7 @@ ssize_t part_timeout_store(struct device
 #endif /* CONFIG_FAIL_IO_TIMEOUT */
 
 /**
- * blk_abort_request -- Request request recovery for the specified command
+ * blk_abort_request - Request recovery for the specified command
  * @req:	pointer to the request of interest
  *
  * This function requests that the block layer start recovery for the
maintainer Applied
#8 lore raw
In reply to Randy Dunlap
Quoted 2 lines · Randy Dunlap

Drop doubled words or fix them to what they should be. Also fix a few typos and kernel-doc notation.

Applied, thanks.

Signature · 1 line
Jens Axboe