aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2010-06-29 12:54:28 -0400
committerTheodore Ts'o <tytso@mit.edu>2010-06-29 12:54:28 -0400
commite29136f80e775b0310273932b4297a62f5574a29 (patch)
treed10d56b15b7968744ea0becdf61440aae7e609c5 /fs/ext4/super.c
parentc67d859e39896e4286249da89c4ca0ef8bd949cb (diff)
ext4: Enhance ext4_grp_locked_error() to take block and function numbers
Also use a macro definition so that __func__ and __LINE__ is implicit. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 11441e483b62..39aeb454bf2c 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -514,8 +514,10 @@ void __ext4_warning(struct super_block *sb, const char *function,
514 va_end(args); 514 va_end(args);
515} 515}
516 516
517void ext4_grp_locked_error(struct super_block *sb, ext4_group_t grp, 517void __ext4_grp_locked_error(const char *function, unsigned int line,
518 const char *function, const char *fmt, ...) 518 struct super_block *sb, ext4_group_t grp,
519 unsigned long ino, ext4_fsblk_t block,
520 const char *fmt, ...)
519__releases(bitlock) 521__releases(bitlock)
520__acquires(bitlock) 522__acquires(bitlock)
521{ 523{
@@ -523,7 +525,12 @@ __acquires(bitlock)
523 struct ext4_super_block *es = EXT4_SB(sb)->s_es; 525 struct ext4_super_block *es = EXT4_SB(sb)->s_es;
524 526
525 va_start(args, fmt); 527 va_start(args, fmt);
526 printk(KERN_CRIT "EXT4-fs error (device %s): %s: ", sb->s_id, function); 528 printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: group %u",
529 sb->s_id, function, line, grp);
530 if (ino)
531 printk("inode %lu: ", ino);
532 if (block)
533 printk("block %llu:", (unsigned long long) block);
527 vprintk(fmt, args); 534 vprintk(fmt, args);
528 printk("\n"); 535 printk("\n");
529 va_end(args); 536 va_end(args);