瀏覽代碼

ext4: Change all super.c messages to print the device

This patch changes ext4 super.c to include the device name with all 
warning/error messages, by using a new utility function ext4_msg. 
It's a rather large patch, but very mechanic. I left debug printks
alone.

This is a straightforward port of a patch which Andi Kleen did for
ext3.

Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Eric Sandeen 16 年之前
父節點
當前提交
b31e15527a
共有 2 個文件被更改,包括 202 次插入194 次删除
  1. 2 0
      fs/ext4/ext4.h
  2. 200 194
      fs/ext4/super.c

+ 2 - 0
fs/ext4/ext4.h

@@ -1401,6 +1401,8 @@ extern void ext4_abort(struct super_block *, const char *, const char *, ...)
 	__attribute__ ((format (printf, 3, 4)));
 extern void ext4_warning(struct super_block *, const char *, const char *, ...)
 	__attribute__ ((format (printf, 3, 4)));
+extern void ext4_msg(struct super_block *, const char *, const char *, ...)
+	__attribute__ ((format (printf, 3, 4)));
 extern void ext4_grp_locked_error(struct super_block *, ext4_group_t,
 				const char *, const char *, ...)
 	__attribute__ ((format (printf, 4, 5)));

文件差異過大導致無法顯示
+ 200 - 194
fs/ext4/super.c


部分文件因文件數量過多而無法顯示