Skip to content

Commit

Permalink
ocfs2: Remove unused old_id in ocfs2_commit_cache.
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
  • Loading branch information
Tao Ma authored and Joel Becker committed Sep 10, 2010
1 parent 4c38881 commit f9c57ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/ocfs2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ static int ocfs2_commit_cache(struct ocfs2_super *osb)
{
int status = 0;
unsigned int flushed;
unsigned long old_id;
struct ocfs2_journal *journal = NULL;

mlog_entry_void();
Expand All @@ -326,7 +325,7 @@ static int ocfs2_commit_cache(struct ocfs2_super *osb)
goto finally;
}

old_id = ocfs2_inc_trans_id(journal);
ocfs2_inc_trans_id(journal);

flushed = atomic_read(&journal->j_num_trans);
atomic_set(&journal->j_num_trans, 0);
Expand Down

0 comments on commit f9c57ad

Please sign in to comment.