From: Jan Kara Date: Mon, 16 Jul 2007 06:37:18 +0000 (-0700) Subject: jbd commit: fix transaction dropping X-Git-Tag: v3.12-rc1~28644 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe28e42b99173ba088b1d8448e53029e100bff27;p=kernel%2Fkernel-generic.git jbd commit: fix transaction dropping We have to check that also the second checkpoint list is non-empty before dropping the transaction. Signed-off-by: Jan Kara Cc: Chuck Ebbert Cc: Kirill Korotaev Cc: Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/jbd/commit.c b/fs/jbd/commit.c index 1facfaf..a003d50 100644 --- a/fs/jbd/commit.c +++ b/fs/jbd/commit.c @@ -887,7 +887,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) {