jbd2: move debug message into debug #ifdef
authorTheodore Ts'o <tytso@mit.edu>
Sat, 18 Dec 2010 18:36:33 +0000 (13:36 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 18 Dec 2010 18:36:33 +0000 (13:36 -0500)
This is a port to jbd2 of a patch which Namhyung Kim <namhyung@gmail.com>
originally made to fs/jbd.

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

index 2bc4d5f116f190048782825738cb19485376227c..1cad869494f0ea21d294a9f15ce745c23d164080 100644 (file)
@@ -299,10 +299,10 @@ int jbd2_journal_skip_recovery(journal_t *journal)
 #ifdef CONFIG_JBD2_DEBUG
                int dropped = info.end_transaction - 
                        be32_to_cpu(journal->j_superblock->s_sequence);
-#endif
                jbd_debug(1,
                          "JBD: ignoring %d transaction%s from the journal.\n",
                          dropped, (dropped == 1) ? "" : "s");
+#endif
                journal->j_transaction_sequence = ++info.end_transaction;
        }