ext4: remove unused ext4_error_file()
PATCH 2/2 ext4: remove unused ext4_error_file()
ext4_error_file is not used, so nuke it for now.
Signed-off-by Eric Sandeen <[email protected]>
---
ext4.h | 6 ------ super.c | 27 --------------------------- 2 files changed, 33 deletions(-)
fs/ext4/ext4.h +0 -6
@@ -62,9 +62,6 @@ #define EXT4_ERROR_INODE_BLOCK(inode, block, fmt, a...) \ ext4_error_inode((inode), __func__, __LINE__, (block), (fmt), ## a) -#define EXT4_ERROR_FILE(file, fmt, a...) \ - ext4_error_file(__func__, __LINE__, (file), (fmt), ## a) -/* data type for block offset of block group */ typedef int ext4_grpblk_t ;
@@ -1686,9 +1683,6 @@ extern void __ext4_error(struct super_block *, const char *, unsigned int,extern void ext4_error_inode (struct inode *,const char *,unsigned int ,ext4_fsblk_t ,const char *, ...) __attribute__ ((format (printf,5 ,6 ))); -extern void ext4_error_file (struct file *,const char *,unsigned int , -const char *, ...) - __attribute__ ((format (printf,4 ,5 )));extern void __ext4_std_error (struct super_block *,const char *,unsigned int ,int ); extern void __ext4_abort(struct super_block *, const char *, unsigned int,
fs/ext4/super.c +0 -26
@@ -416,33 +416,6 @@ void ext4_error_inode(struct inode *inode, const char *function,ext4_handle_error (inode->i_sb); } -void ext4_error_file (struct file *file,const char *function, -unsigned int line,const char *fmt, ...) -{ -va_list args; -struct ext4_super_block *es; -struct inode *inode = file->f_dentry->d_inode; -char pathname[80 ], *path; - - es =EXT4_SB (inode->i_sb)->s_es; - es->s_last_error_ino =cpu_to_le32 (inode->i_ino); -save_error_info (inode->i_sb, function, line); -va_start (args, fmt); - path =d_path (&(file->f_path), pathname,sizeof (pathname)); -if (!path) - path ="(unknown)" ; -printk (KERN_CRIT -"EXT4-fs error (device %s): %s:%d: inode #%lu " -"(comm %s path %s): " , - inode->i_sb->s_id, function, line, inode->i_ino, - current->comm, path); -vprintk (fmt, args); -printk ("\n" ); -va_end (args); - -ext4_handle_error (inode->i_sb); -}