diff options
author | dingdinghua <dingdinghua@nrchpc.ac.cn> | 2010-02-24 12:11:20 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-02-24 12:11:20 -0500 |
commit | 23e2af3518facab6838d7aac1f46fbd7a5a290ce (patch) | |
tree | 97a45b7d17bd0f4f5c8a65a9583b66886351cf7a /fs/jbd2 | |
parent | 56c50f11f4d11cb14d78fe52330efb69d219c62f (diff) | |
download | op-kernel-dev-23e2af3518facab6838d7aac1f46fbd7a5a290ce.zip op-kernel-dev-23e2af3518facab6838d7aac1f46fbd7a5a290ce.tar.gz |
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>
Diffstat (limited to 'fs/jbd2')
-rw-r--r-- | fs/jbd2/commit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index 3ee211e..671da7f 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 |