summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordingdinghua <dingdinghua@nrchpc.ac.cn>2010-02-24 12:11:20 -0500
committerTheodore Ts'o <tytso@mit.edu>2010-02-24 12:11:20 -0500
commit23e2af3518facab6838d7aac1f46fbd7a5a290ce (patch)
tree97a45b7d17bd0f4f5c8a65a9583b66886351cf7a
parent56c50f11f4d11cb14d78fe52330efb69d219c62f (diff)
jbd2: clean up an assertion in jbd2_journal_commit_transaction()
commit_transaction has the same value as journal->j_running_transaction, so we can simplify the assert statement. Signed-off-by: dingdinghua <dingdinghua@nrchpc.ac.cn> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r--fs/jbd2/commit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
index 3ee211ed58f..671da7fb7ff 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -883,8 +883,7 @@ restart_loop:
spin_unlock(&journal->j_list_lock);
bh = jh2bh(jh);
jbd_lock_bh_state(bh);
- J_ASSERT_JH(jh, jh->b_transaction == commit_transaction ||
- jh->b_transaction == journal->j_running_transaction);
+ J_ASSERT_JH(jh, jh->b_transaction == commit_transaction);
/*
* If there is undo-protected committed data against