]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ext4: clarify ext4_error message in ext4_mb_generate_buddy_error()
authorTheodore Ts'o <tytso@mit.edu>
Sat, 5 Jul 2014 23:15:50 +0000 (19:15 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 5 Jul 2014 23:15:50 +0000 (19:15 -0400)
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
fs/ext4/mballoc.c

index 7f72f50a8fa764e80a91cfaea969297f65a8b615..2dcb936be90e8e53705adcb32760108154f96ad0 100644 (file)
@@ -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