aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteve French <sfrench@hera.kernel.org>2005-05-19 12:26:57 -0700
committerSteve French <sfrench@hera.kernel.org>2005-05-19 12:26:57 -0700
commit7e2987503dda95a5f80290bb8c06279009c2419e (patch)
treee841944c911ada8d2b806e13d2c7b7320adaeb2f /fs
parent[CIFS] fix casts of unicode strings to match function definition (diff)
parent[PATCH] prevent NULL mmap in topdown model (diff)
downloadlinux-dev-7e2987503dda95a5f80290bb8c06279009c2419e.tar.xz
linux-dev-7e2987503dda95a5f80290bb8c06279009c2419e.zip
Merge with rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'fs')
-rw-r--r--fs/ext3/super.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 545b440a2d2f..981ccb233ef5 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -225,8 +225,16 @@ void __ext3_std_error (struct super_block * sb, const char * function,
int errno)
{
char nbuf[16];
- const char *errstr = ext3_decode_error(sb, errno, nbuf);
+ const char *errstr;
+
+ /* Special case: if the error is EROFS, and we're not already
+ * inside a transaction, then there's really no point in logging
+ * an error. */
+ if (errno == -EROFS && journal_current_handle() == NULL &&
+ (sb->s_flags & MS_RDONLY))
+ return;
+ errstr = ext3_decode_error(sb, errno, nbuf);
printk (KERN_CRIT "EXT3-fs error (device %s) in %s: %s\n",
sb->s_id, function, errstr);