summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/journal.c
diff options
context:
space:
mode:
authorTao Ma <tao.ma@oracle.com>2010-08-02 05:02:13 +0200
committerJoel Becker <joel.becker@oracle.com>2010-09-10 17:40:08 +0200
commitf9c57ada32ea3f2e12600cf274035fff063b2e0f (patch)
treed8aaf4d6e6a3face4465258cd3cc6ec34f572994 /fs/ocfs2/journal.c
parentocfs2: Remove ocfs2_sync_inode() (diff)
downloadlinux-f9c57ada32ea3f2e12600cf274035fff063b2e0f.tar.xz
linux-f9c57ada32ea3f2e12600cf274035fff063b2e0f.zip
ocfs2: Remove unused old_id in ocfs2_commit_cache.
Signed-off-by: Tao Ma <tao.ma@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/journal.c')
-rw-r--r--fs/ocfs2/journal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c
index 04d41dfeab9a..5787802c2d6a 100644
--- a/fs/ocfs2/journal.c
+++ b/fs/ocfs2/journal.c
@@ -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();
@@ -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);