[PATCH] xfs: Fix comment typo

Xin Gao posted 1 patch 3 years, 8 months ago
There is a newer version of this series
fs/xfs/libxfs/xfs_bmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] xfs: Fix comment typo
Posted by Xin Gao 3 years, 8 months ago
The double `for' is duplicated in line 3788, remove one.

Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
---
 fs/xfs/libxfs/xfs_bmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c
index 6833110d1bd4..6f6d87ba29a3 100644
--- a/fs/xfs/libxfs/xfs_bmap.c
+++ b/fs/xfs/libxfs/xfs_bmap.c
@@ -3785,7 +3785,7 @@ xfs_bmapi_trim_map(
 		mval->br_startblock = got->br_startblock +
 					(*bno - got->br_startoff);
 	/*
-	 * Return the minimum of what we got and what we asked for for
+	 * Return the minimum of what we got and what we asked for
 	 * the length.  We can use the len variable here because it is
 	 * modified below and we could have been there before coming
 	 * here if the first part of the allocation didn't overlap what
-- 
2.30.2
Re: [PATCH] xfs: Fix comment typo
Posted by Eric Sandeen 3 years, 8 months ago
On 7/22/22 2:36 PM, Xin Gao wrote:
> The double `for' is duplicated in line 3788, remove one.
> 
> Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
> ---
>  fs/xfs/libxfs/xfs_bmap.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c
> index 6833110d1bd4..6f6d87ba29a3 100644
> --- a/fs/xfs/libxfs/xfs_bmap.c
> +++ b/fs/xfs/libxfs/xfs_bmap.c
> @@ -3785,7 +3785,7 @@ xfs_bmapi_trim_map(
>  		mval->br_startblock = got->br_startblock +
>  					(*bno - got->br_startoff);
>  	/*
> -	 * Return the minimum of what we got and what we asked for for
> +	 * Return the minimum of what we got and what we asked for
>  	 * the length.  We can use the len variable here because it is
>  	 * modified below and we could have been there before coming
>  	 * here if the first part of the allocation didn't overlap what

NAK.

The comment is correct.