diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 12:10:55 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 12:10:55 -0500 |
commit | f7c21177af0b32a2cd9ee36189637f0c1f0e1e17 (patch) | |
tree | ba83d4ddcd4b7e15ff575f0b75013ba9ed62f249 /fs/ext4/ext4.h | |
parent | f9a62d090cf47fae2fe6f6bd8eb9f24482573fd8 (diff) |
ext4: Use ext4_error_file() to print the pathname to the corrupted inode
Where the file pointer is available, use ext4_error_file() instead of
ext4_error_inode().
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 8104ab7eb7d4..2a739255ee05 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -62,8 +62,8 @@ | |||
62 | #define EXT4_ERROR_INODE_BLOCK(inode, block, fmt, a...) \ | 62 | #define EXT4_ERROR_INODE_BLOCK(inode, block, fmt, a...) \ |
63 | ext4_error_inode((inode), __func__, __LINE__, (block), (fmt), ## a) | 63 | ext4_error_inode((inode), __func__, __LINE__, (block), (fmt), ## a) |
64 | 64 | ||
65 | #define EXT4_ERROR_FILE(file, fmt, a...) \ | 65 | #define EXT4_ERROR_FILE(file, block, fmt, a...) \ |
66 | ext4_error_file(__func__, __LINE__, (file), (fmt), ## a) | 66 | ext4_error_file((file), __func__, __LINE__, (block), (fmt), ## a) |
67 | 67 | ||
68 | /* data type for block offset of block group */ | 68 | /* data type for block offset of block group */ |
69 | typedef int ext4_grpblk_t; | 69 | typedef int ext4_grpblk_t; |
@@ -1640,11 +1640,12 @@ extern unsigned ext4_init_block_bitmap(struct super_block *sb, | |||
1640 | 1640 | ||
1641 | /* dir.c */ | 1641 | /* dir.c */ |
1642 | extern int __ext4_check_dir_entry(const char *, unsigned int, struct inode *, | 1642 | extern int __ext4_check_dir_entry(const char *, unsigned int, struct inode *, |
1643 | struct file *, | ||
1643 | struct ext4_dir_entry_2 *, | 1644 | struct ext4_dir_entry_2 *, |
1644 | struct buffer_head *, unsigned int); | 1645 | struct buffer_head *, unsigned int); |
1645 | #define ext4_check_dir_entry(dir, de, bh, offset) \ | 1646 | #define ext4_check_dir_entry(dir, filp, de, bh, offset) \ |
1646 | unlikely(__ext4_check_dir_entry(__func__, __LINE__, (dir), (de), \ | 1647 | unlikely(__ext4_check_dir_entry(__func__, __LINE__, (dir), (filp), \ |
1647 | (bh), (offset))) | 1648 | (de), (bh), (offset))) |
1648 | extern int ext4_htree_store_dirent(struct file *dir_file, __u32 hash, | 1649 | extern int ext4_htree_store_dirent(struct file *dir_file, __u32 hash, |
1649 | __u32 minor_hash, | 1650 | __u32 minor_hash, |
1650 | struct ext4_dir_entry_2 *dirent); | 1651 | struct ext4_dir_entry_2 *dirent); |
@@ -1751,8 +1752,8 @@ extern void ext4_error_inode(struct inode *, const char *, unsigned int, | |||
1751 | ext4_fsblk_t, const char *, ...) | 1752 | ext4_fsblk_t, const char *, ...) |
1752 | __attribute__ ((format (printf, 5, 6))); | 1753 | __attribute__ ((format (printf, 5, 6))); |
1753 | extern void ext4_error_file(struct file *, const char *, unsigned int, | 1754 | extern void ext4_error_file(struct file *, const char *, unsigned int, |
1754 | const char *, ...) | 1755 | ext4_fsblk_t, const char *, ...) |
1755 | __attribute__ ((format (printf, 4, 5))); | 1756 | __attribute__ ((format (printf, 5, 6))); |
1756 | extern void __ext4_std_error(struct super_block *, const char *, | 1757 | extern void __ext4_std_error(struct super_block *, const char *, |
1757 | unsigned int, int); | 1758 | unsigned int, int); |
1758 | extern void __ext4_abort(struct super_block *, const char *, unsigned int, | 1759 | extern void __ext4_abort(struct super_block *, const char *, unsigned int, |