diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-10-04 10:26:53 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-10-28 01:30:01 +0200 |
commit | c5639bef63a241d8d5a00e5243d7f304d7563c46 (patch) | |
tree | f0db02b256104af545b5da0eb40627b9367f12b4 /fs/jbd | |
parent | ext2: fix comment on ext2_try_to_allocate() (diff) | |
download | linux-c5639bef63a241d8d5a00e5243d7f304d7563c46.tar.xz linux-c5639bef63a241d8d5a00e5243d7f304d7563c46.zip |
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>
Diffstat (limited to 'fs/jbd')
-rw-r--r-- | fs/jbd/recovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jbd/recovery.c b/fs/jbd/recovery.c index 81051dafebf5..5b43e96788e6 100644 --- a/fs/jbd/recovery.c +++ b/fs/jbd/recovery.c @@ -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; } |