On 2010-03-18, at 18:50, Theodore Ts'o wrote:
@@ -363,12 +363,19 @@ void ext4_error_inode(const char *function,
struct inode *inode,
{
va_list args;
+ if (!ext4_test_inode_state(inode, EXT4_STATE_ERR_SQUELCHED) ||
+ !(EXT4_SB(inode->i_sb)->s_mount_flags & EXT4_MF_FS_SQUELCH)) {
+ va_start(args, fmt);
+ printk(KERN_CRIT "EXT4-fs error (device %s): %s: "
+ "inode #%lu: (comm %s) ",
+ inode->i_sb->s_id, function, inode->i_ino,
+ current->comm);
+ vprintk(fmt, args);
+ printk("\n");
+ va_end(args);
Shouldn't this really be using ext4_msg()?
Cheers, Andreas
--
Andreas Dilger
Principal Engineer, Lustre Group
Oracle Corporation Canada Inc.
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html