diff options
| author | <jgarzik@pretzel.yyz.us> | 2005-05-27 22:07:02 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-05-27 22:07:02 -0400 |
| commit | 1f15d694522af9cd7492695f11dd2dc77b6cf098 (patch) | |
| tree | 7f67a4c38456ec73359d576a5c602d18c3c3ef72 /fs/ext3/super.c | |
| parent | fff9cfd99c0f88645c3f50d7476d6c8cef99f140 (diff) | |
| parent | 254feb882a7c6e4e51416dff6a97d847fbbba551 (diff) | |
Automatic merge of /spare/repo/netdev-2.6 branch master
Diffstat (limited to 'fs/ext3/super.c')
| -rw-r--r-- | fs/ext3/super.c | 10 |
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, | |||
| 225 | int errno) | 225 | int errno) |
| 226 | { | 226 | { |
| 227 | char nbuf[16]; | 227 | char nbuf[16]; |
| 228 | const char *errstr = ext3_decode_error(sb, errno, nbuf); | 228 | const char *errstr; |
| 229 | |||
| 230 | /* Special case: if the error is EROFS, and we're not already | ||
| 231 | * inside a transaction, then there's really no point in logging | ||
| 232 | * an error. */ | ||
| 233 | if (errno == -EROFS && journal_current_handle() == NULL && | ||
| 234 | (sb->s_flags & MS_RDONLY)) | ||
| 235 | return; | ||
| 229 | 236 | ||
| 237 | errstr = ext3_decode_error(sb, errno, nbuf); | ||
| 230 | printk (KERN_CRIT "EXT3-fs error (device %s) in %s: %s\n", | 238 | printk (KERN_CRIT "EXT3-fs error (device %s) in %s: %s\n", |
| 231 | sb->s_id, function, errstr); | 239 | sb->s_id, function, errstr); |
| 232 | 240 | ||
