Skip to contentSkip to conversation

fs: Fix missing 'bit' in comment

PATCH In review Chucheng Luo 3 participants 4 messages Mar 12, 2020 – Mar 13, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: Fix missing 'bit' in comment

The missing word may make it hard for other developers to understand it.

---
 fs/vboxsf/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/vboxsf/dir.c +1 -1
index dd147b490982..be4f72625d36 100644
@@ -134,7 +134,7 @@ static bool vboxsf_dir_emit(struct file *dir, struct dir_context *ctx)
 		d_type = vboxsf_get_d_type(info->info.attr.mode);
 
 		/*
-		 * On 32 bit systems pos is 64 signed, while ino is 32 bit
+		 * On 32 bit systems pos is 64 bit signed, while ino is 32 bit
 		 * unsigned so fake_ino may overflow, check for this.
 		 */
 		if ((ino_t)(ctx->pos + 1) != (u64)(ctx->pos + 1)) {
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw

Hi,

Quoted 4 lines · Chucheng Luo

The missing word may make it hard for other developers to understand it.

Thanks for catching this:

Regards,

Hans

Quoted 18 lines
---
  fs/vboxsf/dir.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
fs/vboxsf/dir.c +1 -1
index dd147b490982..be4f72625d36 100644
@@ -134,7 +134,7 @@ static bool vboxsf_dir_emit(struct file *dir, struct dir_context *ctx)
  		d_type = vboxsf_get_d_type(info->info.attr.mode);
 
  		/*
-		 * On 32 bit systems pos is 64 signed, while ino is 32 bit
+		 * On 32 bit systems pos is 64 bit signed, while ino is 32 bit
  		 * unsigned so fake_ino may overflow, check for this.
  		 */
  		if ((ino_t)(ctx->pos + 1) != (u64)(ctx->pos + 1)) {
#2 lore raw

Re: [PATCH] Fix missing 'bit' in comment

Quoted 11 lines · Hans de Goede

Hi,

Quoted 3 lines · Chucheng Luo

The missing word may make it hard for other developers to understand it.

Thanks for catching this:

Not to nit-pick, but these should properly be written as "32-bit" and "64-bit". That can be easily fixed in the patch before upstream submission.

Cheers, Andreas

Quoted 5 lines

Regards,

Hans

Quoted 16 lines
Quoted 8 lines
---
 fs/vboxsf/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/vboxsf/dir.c +0 -0
index dd147b490982..be4f72625d36 100644

fs/vboxsf/dir.c static bool vboxsf_dir_emit(struct file *dir, struct dir_context *ctx) · line 139

Quoted 7 lines
fs/vboxsf/dir.c +1 -1
@@ -134,7 +134,7 @@ static bool vboxsf_dir_emit(struct file *dir, struct dir_context *ctx)
 		d_type = vboxsf_get_d_type(info->info.attr.mode);
   		/*
-		 * On 32 bit systems pos is 64 signed, while ino is 32 bit
+		 * On 32 bit systems pos is 64 bit signed, while ino is 32 bit
 		 * unsigned so fake_ino may overflow, check for this.
 		 */
 		if ((ino_t)(ctx->pos + 1) != (u64)(ctx->pos + 1)) {

Cheers, Andreas

author
#3 lore raw

Re:Re: [PATCH] Fix missing 'bit' in comment

That sounds reasonable. I will submit a new patch based on '32-bit' and '64-bit'

From: Andreas Dilger <[email protected]>
Date: 2020-03-13 05:27:48
To: Hans de Goede <[email protected]>
Cc: Chucheng Luo <[email protected]>,Linux FS Devel <[email protected]>,[email protected],[email protected],[email protected]

Quoted 46 lines · Hans de Goede
Quoted 11 lines

Hi,

Quoted 3 lines · Chucheng Luo

The missing word may make it hard for other developers to understand it.

Thanks for catching this:

Not to nit-pick, but these should properly be written as "32-bit" and "64-bit". That can be easily fixed in the patch before upstream submission.

Cheers, Andreas

Quoted 5 lines

Regards,

Hans

Quoted 16 lines
Quoted 8 lines
---
 fs/vboxsf/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/vboxsf/dir.c +0 -0
index dd147b490982..be4f72625d36 100644

fs/vboxsf/dir.c static bool vboxsf_dir_emit(struct file *dir, struct dir_context *ctx) · line 139

Quoted 7 lines
fs/vboxsf/dir.c +1 -1
@@ -134,7 +134,7 @@ static bool vboxsf_dir_emit(struct file *dir, struct dir_context *ctx)
 		d_type = vboxsf_get_d_type(info->info.attr.mode);
   		/*
-		 * On 32 bit systems pos is 64 signed, while ino is 32 bit
+		 * On 32 bit systems pos is 64 bit signed, while ino is 32 bit
 		 * unsigned so fake_ino may overflow, check for this.
 		 */
 		if ((ino_t)(ctx->pos + 1) != (u64)(ctx->pos + 1)) {

Cheers, Andreas