aboutsummaryrefslogtreecommitdiffstats
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 3ee211ed58f1..671da7fb7ffd 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -883,8 +883,7 @@ restart_loop:
883 spin_unlock(&journal->j_list_lock); 883 spin_unlock(&journal->j_list_lock);
884 bh = jh2bh(jh); 884 bh = jh2bh(jh);
885 jbd_lock_bh_state(bh); 885 jbd_lock_bh_state(bh);
886 J_ASSERT_JH(jh, jh->b_transaction == commit_transaction || 886 J_ASSERT_JH(jh, jh->b_transaction == commit_transaction);
887 jh->b_transaction == journal->j_running_transaction);
888 887
889 /* 888 /*
890 * If there is undo-protected committed data against 889 * If there is undo-protected committed data against