Commit c5639bef63a241d8d5a00e5243d7f304d7563c46

Authored by Namhyung Kim
Committed by Jan Kara
1 parent 26f78b7a42

jbd: Move debug message into #ifdef area

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -296,10 +296,10 @@
296 296 #ifdef CONFIG_JBD_DEBUG
297 297 int dropped = info.end_transaction -
298 298 be32_to_cpu(journal->j_superblock->s_sequence);
299   -#endif
300 299 jbd_debug(1,
301 300 "JBD: ignoring %d transaction%s from the journal.\n",
302 301 dropped, (dropped == 1) ? "" : "s");
  302 +#endif
303 303 journal->j_transaction_sequence = ++info.end_transaction;
304 304 }
305 305