diff options
Diffstat (limited to 'fs/ext4/super.c')
| -rw-r--r-- | fs/ext4/super.c | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 25b1f0374f01..11dfaad232cf 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
| @@ -515,11 +515,16 @@ void ext4_error_inode(struct inode *inode, const char *function, | |||
| 515 | va_start(args, fmt); | 515 | va_start(args, fmt); |
| 516 | vaf.fmt = fmt; | 516 | vaf.fmt = fmt; |
| 517 | vaf.va = &args; | 517 | vaf.va = &args; |
| 518 | printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: inode #%lu: ", | ||
| 519 | inode->i_sb->s_id, function, line, inode->i_ino); | ||
| 520 | if (block) | 518 | if (block) |
| 521 | printk(KERN_CONT "block %llu: ", block); | 519 | printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: " |
| 522 | printk(KERN_CONT "comm %s: %pV\n", current->comm, &vaf); | 520 | "inode #%lu: block %llu: comm %s: %pV\n", |
| 521 | inode->i_sb->s_id, function, line, inode->i_ino, | ||
| 522 | block, current->comm, &vaf); | ||
| 523 | else | ||
| 524 | printk(KERN_CRIT "EXT4-fs error (device %s): %s:%d: " | ||
| 525 | "inode #%lu: comm %s: %pV\n", | ||
| 526 | inode->i_sb->s_id, function, line, inode->i_ino, | ||
| 527 | current->comm, &vaf); | ||
| 523 | va_end(args); | 528 | va_end(args); |
| 524 | 529 | ||
| 525 | ext4_handle_error(inode->i_sb); | 530 | ext4_handle_error(inode->i_sb); |
| @@ -541,15 +546,21 @@ void ext4_error_file(struct file *file, const char *function, | |||
| 541 | path = d_path(&(file->f_path), pathname, sizeof(pathname)); | 546 | path = d_path(&(file->f_path), pathname, sizeof(pathname)); |
| 542 | if (IS_ERR(path)) | 547 | if (IS_ERR(path)) |
| 543 | path = "(unknown)"; | 548 | path = "(unknown)"; |
| 544 | printk(KERN_CRIT | ||
| 545 | "EXT4-fs error (device %s): %s:%d: inode #%lu: ", | ||
| 546 | inode->i_sb->s_id, function, line, inode->i_ino); | ||
| 547 | if (block) | ||
| 548 | printk(KERN_CONT "block %llu: ", block); | ||
| 549 | va_start(args, fmt); | 549 | va_start(args, fmt); |
| 550 | vaf.fmt = fmt; | 550 | vaf.fmt = fmt; |
| 551 | vaf.va = &args; | 551 | vaf.va = &args; |
| 552 | printk(KERN_CONT "comm %s: path %s: %pV\n", current->comm, path, &vaf); | 552 | if (block) |
| 553 | printk(KERN_CRIT | ||
| 554 | "EXT4-fs error (device %s): %s:%d: inode #%lu: " | ||
| 555 | "block %llu: comm %s: path %s: %pV\n", | ||
| 556 | inode->i_sb->s_id, function, line, inode->i_ino, | ||
| 557 | block, current->comm, path, &vaf); | ||
| 558 | else | ||
| 559 | printk(KERN_CRIT | ||
| 560 | "EXT4-fs error (device %s): %s:%d: inode #%lu: " | ||
| 561 | "comm %s: path %s: %pV\n", | ||
| 562 | inode->i_sb->s_id, function, line, inode->i_ino, | ||
| 563 | current->comm, path, &vaf); | ||
| 553 | va_end(args); | 564 | va_end(args); |
| 554 | 565 | ||
| 555 | ext4_handle_error(inode->i_sb); | 566 | ext4_handle_error(inode->i_sb); |
