]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
jbd: Move debug message into #ifdef area
authorNamhyung Kim <namhyung@gmail.com>
Mon, 4 Oct 2010 08:26:53 +0000 (17:26 +0900)
committerJan Kara <jack@suse.cz>
Wed, 27 Oct 2010 23:30:01 +0000 (01:30 +0200)
Move call to jbd_debug() into #ifdef CONFIG_JBD_DEBUG block because
'dropped' is declared there. The code could be compiled without this
change anyway, simply because jbd_debug() expands to nothing if
!CONFIG_JBD_DEBUG but IMHO it doesn't look good in general.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/jbd/recovery.c

index 81051dafebf5cadea98d14ab9deed5fabe068937..5b43e96788e6553ec0a716baa45e1a1ac509e838 100644 (file)
@@ -296,10 +296,10 @@ int journal_skip_recovery(journal_t *journal)
 #ifdef CONFIG_JBD_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;
        }