mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
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>
This commit is contained in:
parent
56c50f11f4
commit
23e2af3518
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user