All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] ext4: remove unused ext4_error_file()
@ 2010-09-15 18:27 Eric Sandeen
  0 siblings, 0 replies; only message in thread
From: Eric Sandeen @ 2010-09-15 18:27 UTC (permalink / raw)
  To: ext4 development

ext4_error_file is not used, so nuke it for now.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

 ext4.h  |    6 ------
 super.c |   27 ---------------------------
 2 files changed, 33 deletions(-)

diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index cb4d204..41dbcff 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -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,
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 2614774..6c35f64 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -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);
-}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-15 18:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-15 18:27 [PATCH 2/2] ext4: remove unused ext4_error_file() Eric Sandeen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.