Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43c3e6f5 authored by Jan Kara's avatar Jan Kara Committed by Linus Torvalds
Browse files

[PATCH] jbd: remove_transaction fix



We have to check that also the second checkpoint list is non-empty before
dropping the transaction.

Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8d3c7fce
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -829,7 +829,8 @@ void journal_commit_transaction(journal_t *journal)
	journal->j_committing_transaction = NULL;
	spin_unlock(&journal->j_state_lock);

	if (commit_transaction->t_checkpoint_list == NULL) {
	if (commit_transaction->t_checkpoint_list == NULL &&
	    commit_transaction->t_checkpoint_io_list == NULL) {
		__journal_drop_transaction(journal, commit_transaction);
	} else {
		if (journal->j_checkpoint_transactions == NULL) {