Skip to contentSkip to conversation

ext4: critical info format fix in __acquire

PATCH In review Robin Dong 3 participants 3 messages Mar 16, 2011 ext4 file system

lore
Share & tools
lore

Robin Dong

author
#0 lore raw

PATCH 1/1 ext4: critical info format fix in __acquire

From: Robin Dong <[email protected]>

When we do performence-testing on ext4 filesystem, we observe a warning like this:

[ 1684.113205] EXT4-fs error (device sda7): ext4_mb_generate_buddy:718: group 259825901 blocks in bitmap, 26057 in gd

indeed, it should be

group 2598, 25901 blocks in bitmap, 26057 in gd.

---
 fs/ext4/super.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ext4/super.c +1 -1
index f6a318f..bb38475 100644
@@ -594,7 +594,7 @@ __acquires(bitlock)
 
 	vaf.fmt = fmt;
 	vaf.va = &args;
-	printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: group %u",
+	printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: group %u, ",
 	       sb->s_id, function, line, grp);
 	if (ino)
 		printk(KERN_CONT "inode %lu: ", ino);
Signature · 1 line
1.7.3.5
#1 lore raw

On 2011年03月16日 17:37, Robin Dong Wrote:

Quoted 3 lines

From: Robin Dong<[email protected]>

When we do performence-testing on ext4 filesystem, we observe a warning

[snip]

This bug is found on upstream 2.6.36 kernel. We ran a 2.6.36 kernel on the online system with 8 Ext4 file systems. 2 of them are mounted with delayed allocation feature. This warning is only observed on delayed allocation enabled Ext4 file systems.

This issue is not easy to reproduce, on two servers with 2.6.36 kenrel + ext4, after running 110+ days, the error starts to appear on kernel log. When check the error log, we found the info format should be fixed, that's how this patch comes.

For the bug mentioned in Robin's patch, we will start another thread to discuss.

Thanks.

Coly Li
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Robin Dong

Hi Robin,
The function that has the problem isn't ;__acquire', but
__ext4_grp_locked_error. the description __acquire is used for sparse check. So I guess it is a little misleading for the subject. Please change it. Thanks.

btw, You can add Cc: [email protected] in your patch if you want this patch to be in stable.

Regards,
Tao

Quoted 30 lines · Robin Dong

From: Robin Dong <[email protected]>

When we do performence-testing on ext4 filesystem, we observe a warning like this:

[ 1684.113205] EXT4-fs error (device sda7): ext4_mb_generate_buddy:718: group 259825901 blocks in bitmap, 26057 in gd

indeed, it should be

group 2598, 25901 blocks in bitmap, 26057 in gd.

---
 fs/ext4/super.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ext4/super.c +1 -1
index f6a318f..bb38475 100644
@@ -594,7 +594,7 @@ __acquires(bitlock)
 
 	vaf.fmt = fmt;
 	vaf.va = &args;
-	printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: group %u",
+	printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: group %u, ",
 	       sb->s_id, function, line, grp);
 	if (ino)
 		printk(KERN_CONT "inode %lu: ", ino);