All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext2: Fix a typo in comment
@ 2019-01-29 12:39 Liu Xiang
  2019-01-29 15:44 ` Jan Kara
  0 siblings, 1 reply; 4+ messages in thread
From: Liu Xiang @ 2019-01-29 12:39 UTC (permalink / raw
  To: jack; +Cc: linux-ext4, linux-kernel, liuxiang_1999, Liu Xiang

Fix a typo in ext2_get_blocks comment.

Signed-off-by: Liu Xiang <liu.xiang6@zte.com.cn>
---
 fs/ext2/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c
index e4bb938..11da3fb 100644
--- a/fs/ext2/inode.c
+++ b/fs/ext2/inode.c
@@ -717,7 +717,7 @@ static int ext2_get_blocks(struct inode *inode,
 	/* the number of blocks need to allocate for [d,t]indirect blocks */
 	indirect_blks = (chain + depth) - partial - 1;
 	/*
-	 * Next look up the indirect map to count the totoal number of
+	 * Next look up the indirect map to count the total number of
 	 * direct blocks to allocate for this branch.
 	 */
 	count = ext2_blks_to_allocate(partial, indirect_blks,
-- 
1.9.1


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

* Re: [PATCH] ext2: Fix a typo in comment
  2019-01-29 12:39 [PATCH] ext2: Fix " Liu Xiang
@ 2019-01-29 15:44 ` Jan Kara
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Kara @ 2019-01-29 15:44 UTC (permalink / raw
  To: Liu Xiang; +Cc: jack, linux-ext4, linux-kernel, liuxiang_1999

On Tue 29-01-19 20:39:49, Liu Xiang wrote:
> Fix a typo in ext2_get_blocks comment.
> 
> Signed-off-by: Liu Xiang <liu.xiang6@zte.com.cn>

Thanks for the patch! Applied to my tree.

								Honza

> ---
>  fs/ext2/inode.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c
> index e4bb938..11da3fb 100644
> --- a/fs/ext2/inode.c
> +++ b/fs/ext2/inode.c
> @@ -717,7 +717,7 @@ static int ext2_get_blocks(struct inode *inode,
>  	/* the number of blocks need to allocate for [d,t]indirect blocks */
>  	indirect_blks = (chain + depth) - partial - 1;
>  	/*
> -	 * Next look up the indirect map to count the totoal number of
> +	 * Next look up the indirect map to count the total number of
>  	 * direct blocks to allocate for this branch.
>  	 */
>  	count = ext2_blks_to_allocate(partial, indirect_blks,
> -- 
> 1.9.1
> 
> 
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

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

* [PATCH] ext2: fix a typo in comment
@ 2019-06-12  4:57 Chengguang Xu
  2019-06-12 13:08 ` Jan Kara
  0 siblings, 1 reply; 4+ messages in thread
From: Chengguang Xu @ 2019-06-12  4:57 UTC (permalink / raw
  To: jack; +Cc: linux-ext4, Chengguang Xu

Just fix a typo in comment and remove redundant blank line
in ext2_data_block_valid().

Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>
---
 fs/ext2/balloc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c
index 33db13365c5e..547c165299c0 100644
--- a/fs/ext2/balloc.c
+++ b/fs/ext2/balloc.c
@@ -1197,7 +1197,7 @@ static int ext2_has_free_blocks(struct ext2_sb_info *sbi)
 
 /*
  * Returns 1 if the passed-in block region is valid; 0 if some part overlaps
- * with filesystem metadata blocksi.
+ * with filesystem metadata blocks.
  */
 int ext2_data_block_valid(struct ext2_sb_info *sbi, ext2_fsblk_t start_blk,
 			  unsigned int count)
@@ -1212,7 +1212,6 @@ int ext2_data_block_valid(struct ext2_sb_info *sbi, ext2_fsblk_t start_blk,
 	    (start_blk + count >= sbi->s_sb_block))
 		return 0;
 
-
 	return 1;
 }
 
-- 
2.20.1




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

* Re: [PATCH] ext2: fix a typo in comment
  2019-06-12  4:57 [PATCH] ext2: fix a typo in comment Chengguang Xu
@ 2019-06-12 13:08 ` Jan Kara
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Kara @ 2019-06-12 13:08 UTC (permalink / raw
  To: Chengguang Xu; +Cc: jack, linux-ext4

On Wed 12-06-19 12:57:53, Chengguang Xu wrote:
> Just fix a typo in comment and remove redundant blank line
> in ext2_data_block_valid().
> 
> Signed-off-by: Chengguang Xu <cgxu519@zoho.com.cn>

Thanks. Applied to my tree.

								Honza

> ---
>  fs/ext2/balloc.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c
> index 33db13365c5e..547c165299c0 100644
> --- a/fs/ext2/balloc.c
> +++ b/fs/ext2/balloc.c
> @@ -1197,7 +1197,7 @@ static int ext2_has_free_blocks(struct ext2_sb_info *sbi)
>  
>  /*
>   * Returns 1 if the passed-in block region is valid; 0 if some part overlaps
> - * with filesystem metadata blocksi.
> + * with filesystem metadata blocks.
>   */
>  int ext2_data_block_valid(struct ext2_sb_info *sbi, ext2_fsblk_t start_blk,
>  			  unsigned int count)
> @@ -1212,7 +1212,6 @@ int ext2_data_block_valid(struct ext2_sb_info *sbi, ext2_fsblk_t start_blk,
>  	    (start_blk + count >= sbi->s_sb_block))
>  		return 0;
>  
> -
>  	return 1;
>  }
>  
> -- 
> 2.20.1
> 
> 
> 
> 
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

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

end of thread, other threads:[~2019-06-12 13:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-12  4:57 [PATCH] ext2: fix a typo in comment Chengguang Xu
2019-06-12 13:08 ` Jan Kara
  -- strict thread matches above, loose matches on Subject: below --
2019-01-29 12:39 [PATCH] ext2: Fix " Liu Xiang
2019-01-29 15:44 ` Jan Kara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.