jbd2: clarify bad journal block checksum message
authorTheodore Ts'o <tytso@mit.edu>
Mon, 19 Feb 2018 02:33:13 +0000 (21:33 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 19 Feb 2018 02:33:13 +0000 (21:33 -0500)
There were two error messages emitted by jbd2, one for a bad checksum
for a jbd2 descriptor block, and one for a bad checksum for a jbd2
data block.  Change the data block checksum error so that the two can
be disambiguated.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/recovery.c

index f99910b69c78d6e37854a82689a4cadc9b4d3e1d..a4967b27ffb636212ddd21234b1b2fc211a6038b 100644 (file)
@@ -600,8 +600,8 @@ static int do_one_pass(journal_t *journal,
                                                success = -EFSBADCRC;
                                                printk(KERN_ERR "JBD2: Invalid "
                                                       "checksum recovering "
-                                                      "block %llu in log\n",
-                                                      blocknr);
+                                                      "data block %llu in "
+                                                      "log\n", blocknr);
                                                block_error = 1;
                                                goto skip_write;
                                        }