From: Jan Kara Date: Thu, 19 Jan 2006 01:42:20 +0000 (-0800) Subject: [PATCH] jbd: remove_transaction fix X-Git-Tag: v2.6.16-rc2~350 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43c3e6f5abdf6acac9b90c86bf03f995bf7d3d92;p=linux-2.6 [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: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/jbd/commit.c b/fs/jbd/commit.c index 002ad2bbc7..29e62d98ba 100644 --- a/fs/jbd/commit.c +++ b/fs/jbd/commit.c @@ -829,7 +829,8 @@ restart_loop: 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) {