mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ext3: Fix set but unused variables
[[email protected]: Fix compilation with CONFIG_JBD_DEBUG enabled] Acked-by: [email protected] cc: [email protected] Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
parent
189eef59e7
commit
0411ba7902
4 changed files with 3 additions and 20 deletions
|
|
@ -1281,13 +1281,9 @@ int journal_check_used_features (journal_t *journal, unsigned long compat,
|
|||
int journal_check_available_features (journal_t *journal, unsigned long compat,
|
||||
unsigned long ro, unsigned long incompat)
|
||||
{
|
||||
journal_superblock_t *sb;
|
||||
|
||||
if (!compat && !ro && !incompat)
|
||||
return 1;
|
||||
|
||||
sb = journal->j_superblock;
|
||||
|
||||
/* We can support any known requested features iff the
|
||||
* superblock is in version 2. Otherwise we fail to support any
|
||||
* extended sb features. */
|
||||
|
|
@ -1481,7 +1477,6 @@ int journal_flush(journal_t *journal)
|
|||
|
||||
int journal_wipe(journal_t *journal, int write)
|
||||
{
|
||||
journal_superblock_t *sb;
|
||||
int err = 0;
|
||||
|
||||
J_ASSERT (!(journal->j_flags & JFS_LOADED));
|
||||
|
|
@ -1490,8 +1485,6 @@ int journal_wipe(journal_t *journal, int write)
|
|||
if (err)
|
||||
return err;
|
||||
|
||||
sb = journal->j_superblock;
|
||||
|
||||
if (!journal->j_tail)
|
||||
goto no_recovery;
|
||||
|
||||
|
|
|
|||
|
|
@ -283,12 +283,9 @@ int journal_recover(journal_t *journal)
|
|||
int journal_skip_recovery(journal_t *journal)
|
||||
{
|
||||
int err;
|
||||
journal_superblock_t * sb;
|
||||
|
||||
struct recovery_info info;
|
||||
|
||||
memset (&info, 0, sizeof(info));
|
||||
sb = journal->j_superblock;
|
||||
|
||||
err = do_one_pass(journal, &info, PASS_SCAN);
|
||||
|
||||
|
|
@ -297,7 +294,8 @@ int journal_skip_recovery(journal_t *journal)
|
|||
++journal->j_transaction_sequence;
|
||||
} else {
|
||||
#ifdef CONFIG_JBD_DEBUG
|
||||
int dropped = info.end_transaction - be32_to_cpu(sb->s_sequence);
|
||||
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",
|
||||
|
|
@ -321,11 +319,6 @@ static int do_one_pass(journal_t *journal,
|
|||
unsigned int sequence;
|
||||
int blocktype;
|
||||
|
||||
/* Precompute the maximum metadata descriptors in a descriptor block */
|
||||
int MAX_BLOCKS_PER_DESC;
|
||||
MAX_BLOCKS_PER_DESC = ((journal->j_blocksize-sizeof(journal_header_t))
|
||||
/ sizeof(journal_block_tag_t));
|
||||
|
||||
/*
|
||||
* First thing is to establish what we expect to find in the log
|
||||
* (in terms of transaction IDs), and where (in terms of log
|
||||
|
|
|
|||
Loading…
Reference in a new issue