Skip to content

Commit 23e2af3

Browse files
dingdinghuatytso
authored andcommitted
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>
1 parent 56c50f1 commit 23e2af3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/jbd2/commit.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,8 +883,7 @@ void jbd2_journal_commit_transaction(journal_t *journal)
883883
spin_unlock(&journal->j_list_lock);
884884
bh = jh2bh(jh);
885885
jbd_lock_bh_state(bh);
886-
J_ASSERT_JH(jh, jh->b_transaction == commit_transaction ||
887-
jh->b_transaction == journal->j_running_transaction);
886+
J_ASSERT_JH(jh, jh->b_transaction == commit_transaction);
888887

889888
/*
890889
* If there is undo-protected committed data against

0 commit comments

Comments
 (0)