OSDN Git Service

e2fsck: fix build failure with --enable-jbd-debug
authorTheodore Ts'o <tytso@mit.edu>
Wed, 13 Mar 2013 18:02:53 +0000 (14:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Mar 2013 18:02:53 +0000 (14:02 -0400)
Commit e3507739e4185 introduced a build failure if e2fsprogs is
configured with --enable-jbd-debug.  Fix this.

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

index 34c9e59..bdfcd19 100644 (file)
@@ -294,6 +294,8 @@ int journal_skip_recovery(journal_t *journal)
                ++journal->j_transaction_sequence;
        } else {
 #ifdef CONFIG_JBD_DEBUG
+               journal_superblock_t *sb = journal->j_superblock;
+
                int dropped = info.end_transaction - be32_to_cpu(sb->s_sequence);
 #endif
                jbd_debug(1,