Skip to contentSkip to conversation

xfs: Fix comment typo

PATCH NAK Xin Gao 2 participants 2 messages Jul 22, 2022 XFS filesystem

lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 xfs: Fix comment typo

The double `for' is duplicated in line 3788, remove one.

---
 fs/xfs/libxfs/xfs_bmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/libxfs/xfs_bmap.c +1 -1
index 6833110d1bd4..6f6d87ba29a3 100644
@@ -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
Signature · 1 line
2.30.2
#1 lore raw
Quoted 12 lines · Xin Gao

The double `for' is duplicated in line 3788, remove one.

---
 fs/xfs/libxfs/xfs_bmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/libxfs/xfs_bmap.c +0 -0
index 6833110d1bd4..6f6d87ba29a3 100644

fs/xfs/libxfs/xfs_bmap.c xfs_bmapi_trim_map( · line 3791

Quoted 8 lines
fs/xfs/libxfs/xfs_bmap.c +1 -1
@@ -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.