Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138848
b: refs/heads/master
c: 1e5e59d
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Mahoney authored and Linus Torvalds committed Mar 30, 2009
1 parent d5a88e3 commit 1d76805
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32e8b1062915d00d07d3b88a95174648e369b6a3
refs/heads/master: 1e5e59d431038c53954fe8f0b38bee0f0ad30349
25 changes: 25 additions & 0 deletions trunk/fs/reiserfs/prints.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,31 @@ void __reiserfs_panic(struct super_block *sb, const char *id,
id ? id : "", id ? " " : "", function, error_buf);
}

void __reiserfs_error(struct super_block *sb, const char *id,
const char *function, const char *fmt, ...)
{
do_reiserfs_warning(fmt);

BUG_ON(sb == NULL);

if (reiserfs_error_panic(sb))
__reiserfs_panic(sb, id, function, error_buf);

if (id && id[0])
printk(KERN_CRIT "REISERFS error (device %s): %s %s: %s\n",
sb->s_id, id, function, error_buf);
else
printk(KERN_CRIT "REISERFS error (device %s): %s: %s\n",
sb->s_id, function, error_buf);

if (sb->s_flags & MS_RDONLY)
return;

reiserfs_info(sb, "Remounting filesystem read-only\n");
sb->s_flags |= MS_RDONLY;
reiserfs_abort_journal(sb, -EIO);
}

void reiserfs_abort(struct super_block *sb, int errno, const char *fmt, ...)
{
do_reiserfs_warning(fmt);
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/linux/reiserfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -2006,6 +2006,10 @@ void __reiserfs_panic(struct super_block *s, const char *id,
__attribute__ ((noreturn));
#define reiserfs_panic(s, id, fmt, args...) \
__reiserfs_panic(s, id, __func__, fmt, ##args)
void __reiserfs_error(struct super_block *s, const char *id,
const char *function, const char *fmt, ...);
#define reiserfs_error(s, id, fmt, args...) \
__reiserfs_error(s, id, __func__, fmt, ##args)
void reiserfs_info(struct super_block *s, const char *fmt, ...);
void reiserfs_debug(struct super_block *s, int level, const char *fmt, ...);
void print_indirect_item(struct buffer_head *bh, int item_num);
Expand Down

0 comments on commit 1d76805

Please sign in to comment.