瀏覽代碼

ext4: clarify ext4_error message in ext4_mb_generate_buddy_error()

We are spending a lot of time explaining to users what this error
means.  Let's try to improve the message to avoid this problem.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Theodore Ts'o 11 年之前
父節點
當前提交
94d4c066a4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      fs/ext4/mballoc.c

+ 2 - 2
fs/ext4/mballoc.c

@@ -752,8 +752,8 @@ void ext4_mb_generate_buddy(struct super_block *sb,
 
 	if (free != grp->bb_free) {
 		ext4_grp_locked_error(sb, group, 0, 0,
-				      "%u clusters in bitmap, %u in gd; "
-				      "block bitmap corrupt.",
+				      "block bitmap and bg descriptor "
+				      "inconsistent: %u vs %u free clusters",
 				      free, grp->bb_free);
 		/*
 		 * If we intend to continue, we consider group descriptor