Skip to content

Commit

Permalink
[PATCH] jbd: remove_transaction fix
Browse files Browse the repository at this point in the history
We have to check that also the second checkpoint list is non-empty before
dropping the transaction.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jan Kara authored and Linus Torvalds committed Jan 19, 2006
1 parent 8d3c7fc commit 43c3e6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/jbd/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 43c3e6f

Please sign in to comment.