diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-09-07 17:53:35 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-07 17:53:35 -0700 |
| commit | a50467d74deee65f3fc474c1913c40ce3dbcb694 (patch) | |
| tree | 03ed1300aaf8f438abcea68be7e2918cffeac8b8 | |
| parent | 2390fd2b793dd6bcde7f7c6738ba2e6ba51a36d9 (diff) | |
[PATCH] remove ext2_panic()
It has no callers.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | fs/ext2/super.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 9d1e1aa0693b..582fd490f715 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -65,28 +65,6 @@ void ext2_error (struct super_block * sb, const char * function, } } -NORET_TYPE void ext2_panic (struct super_block * sb, const char * function, - const char * fmt, ...) -{ - va_list args; - struct ext2_sb_info *sbi = EXT2_SB(sb); - - if (!(sb->s_flags & MS_RDONLY)) { - sbi->s_mount_state |= EXT2_ERROR_FS; - sbi->s_es->s_state = - cpu_to_le16(le16_to_cpu(sbi->s_es->s_state) | EXT2_ERROR_FS); - mark_buffer_dirty(sbi->s_sbh); - sb->s_dirt = 1; - } - va_start(args, fmt); - printk(KERN_CRIT "EXT2-fs error (device %s): %s: ",sb->s_id, function); - vprintk(fmt, args); - printk("\n"); - va_end(args); - sb->s_flags |= MS_RDONLY; - panic("EXT2-fs panic forced\n"); -} - void ext2_warning (struct super_block * sb, const char * function, const char * fmt, ...) { |
