Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36128
b: refs/heads/master
c: 7543fc7
h: refs/heads/master
v: v3
  • Loading branch information
Vasily Averin authored and Linus Torvalds committed Sep 27, 2006
1 parent 1019c0e commit 12c695f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36faadc144477b4929c8fe60b8053f4472eeb3d2
refs/heads/master: 7543fc7b3abfee8c6cd6349ebd5e5fde02fac984
11 changes: 6 additions & 5 deletions trunk/fs/ext3/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,20 +159,21 @@ static void ext3_handle_error(struct super_block *sb)
if (sb->s_flags & MS_RDONLY)
return;

if (test_opt (sb, ERRORS_RO)) {
printk (KERN_CRIT "Remounting filesystem read-only\n");
sb->s_flags |= MS_RDONLY;
} else {
if (!test_opt (sb, ERRORS_CONT)) {
journal_t *journal = EXT3_SB(sb)->s_journal;

EXT3_SB(sb)->s_mount_opt |= EXT3_MOUNT_ABORT;
if (journal)
journal_abort(journal, -EIO);
}
if (test_opt (sb, ERRORS_RO)) {
printk (KERN_CRIT "Remounting filesystem read-only\n");
sb->s_flags |= MS_RDONLY;
}
ext3_commit_super(sb, es, 1);
if (test_opt(sb, ERRORS_PANIC))
panic("EXT3-fs (device %s): panic forced after error\n",
sb->s_id);
ext3_commit_super(sb, es, 1);
}

void ext3_error (struct super_block * sb, const char * function,
Expand Down

0 comments on commit 12c695f

Please sign in to comment.