linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dm: ebs: Several typo fixes
@ 2021-03-19  1:17 Bhaskar Chowdhury
  2021-03-19 17:56 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Bhaskar Chowdhury @ 2021-03-19  1:17 UTC (permalink / raw)
  To: agk, snitzer, dm-devel, linux-kernel; +Cc: rdunlap, Bhaskar Chowdhury


s/retrievd/retrieved/
s/misalignement/misalignment/
s/funtion/function/

Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>
---
 drivers/md/dm-ebs-target.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/md/dm-ebs-target.c b/drivers/md/dm-ebs-target.c
index 55bcfb74f51f..71475a2410be 100644
--- a/drivers/md/dm-ebs-target.c
+++ b/drivers/md/dm-ebs-target.c
@@ -28,7 +28,7 @@ struct ebs_c {
 	spinlock_t lock;		/* Guard bios input list above. */
 	sector_t start;			/* <start> table line argument, see ebs_ctr below. */
 	unsigned int e_bs;		/* Emulated block size in sectors exposed to upper layer. */
-	unsigned int u_bs;		/* Underlying block size in sectors retrievd from/set on lower layer device. */
+	unsigned int u_bs;		/* Underlying block size in sectors retrieved from/set on lower layer device. */
 	unsigned char block_shift;	/* bitshift sectors -> blocks used in dm-bufio API. */
 	bool u_bs_set:1;		/* Flag to indicate underlying block size is set on table line. */
 };
@@ -43,7 +43,7 @@ static inline sector_t __block_mod(sector_t sector, unsigned int bs)
 	return sector & (bs - 1);
 }

-/* Return number of blocks for a bio, accounting for misalignement of start and end sectors. */
+/* Return number of blocks for a bio, accounting for misalignment of start and end sectors. */
 static inline unsigned int __nr_blocks(struct ebs_c *ec, struct bio *bio)
 {
 	sector_t end_sector = __block_mod(bio->bi_iter.bi_sector, ec->u_bs) + bio_sectors(bio);
@@ -171,7 +171,7 @@ static void __ebs_forget_bio(struct ebs_c *ec, struct bio *bio)
 	dm_bufio_forget_buffers(ec->bufio, __sector_to_block(ec, sector), blocks);
 }

-/* Worker funtion to process incoming bios. */
+/* Worker function to process incoming bios. */
 static void __ebs_process_bios(struct work_struct *ws)
 {
 	int r;
--
2.26.2


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

* Re: [PATCH] dm: ebs: Several typo fixes
  2021-03-19  1:17 [PATCH] dm: ebs: Several typo fixes Bhaskar Chowdhury
@ 2021-03-19 17:56 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2021-03-19 17:56 UTC (permalink / raw)
  To: Bhaskar Chowdhury; +Cc: agk, snitzer, dm-devel, linux-kernel



On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote:

>
> s/retrievd/retrieved/
> s/misalignement/misalignment/
> s/funtion/function/
>
> Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>

Acked-by: Randy Dunlap <rdunlap@infradead.org>

> ---
> drivers/md/dm-ebs-target.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/md/dm-ebs-target.c b/drivers/md/dm-ebs-target.c
> index 55bcfb74f51f..71475a2410be 100644
> --- a/drivers/md/dm-ebs-target.c
> +++ b/drivers/md/dm-ebs-target.c
> @@ -28,7 +28,7 @@ struct ebs_c {
> 	spinlock_t lock;		/* Guard bios input list above. */
> 	sector_t start;			/* <start> table line argument, see ebs_ctr below. */
> 	unsigned int e_bs;		/* Emulated block size in sectors exposed to upper layer. */
> -	unsigned int u_bs;		/* Underlying block size in sectors retrievd from/set on lower layer device. */
> +	unsigned int u_bs;		/* Underlying block size in sectors retrieved from/set on lower layer device. */
> 	unsigned char block_shift;	/* bitshift sectors -> blocks used in dm-bufio API. */
> 	bool u_bs_set:1;		/* Flag to indicate underlying block size is set on table line. */
> };
> @@ -43,7 +43,7 @@ static inline sector_t __block_mod(sector_t sector, unsigned int bs)
> 	return sector & (bs - 1);
> }
>
> -/* Return number of blocks for a bio, accounting for misalignement of start and end sectors. */
> +/* Return number of blocks for a bio, accounting for misalignment of start and end sectors. */
> static inline unsigned int __nr_blocks(struct ebs_c *ec, struct bio *bio)
> {
> 	sector_t end_sector = __block_mod(bio->bi_iter.bi_sector, ec->u_bs) + bio_sectors(bio);
> @@ -171,7 +171,7 @@ static void __ebs_forget_bio(struct ebs_c *ec, struct bio *bio)
> 	dm_bufio_forget_buffers(ec->bufio, __sector_to_block(ec, sector), blocks);
> }
>
> -/* Worker funtion to process incoming bios. */
> +/* Worker function to process incoming bios. */
> static void __ebs_process_bios(struct work_struct *ws)
> {
> 	int r;
> --
> 2.26.2
>
>

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

end of thread, other threads:[~2021-03-19 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-19  1:17 [PATCH] dm: ebs: Several typo fixes Bhaskar Chowdhury
2021-03-19 17:56 ` Randy Dunlap

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).