diff mbox series

ext2: fix a typo in comment

Message ID 20190612045753.12398-1-cgxu519@zoho.com.cn
State Not Applicable
Headers show
Series ext2: fix a typo in comment | expand

Commit Message

Chengguang Xu June 12, 2019, 4:57 a.m. UTC
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(-)

Comments

Jan Kara June 12, 2019, 1:08 p.m. UTC | #1
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
> 
> 
> 
>
diff mbox series

Patch

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;
 }