From 8cd286b224aa466f0087e2d60bf765889d2da6e3 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Sun, 15 Jul 2007 23:37:18 -0700 Subject: [PATCH] [PATCH] 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: Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman Signed-off-by: Willy Tarreau --- fs/jbd/commit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/jbd/commit.c b/fs/jbd/commit.c index be4648bc7a2f..84436cb7f589 100644 --- a/fs/jbd/commit.c +++ b/fs/jbd/commit.c @@ -888,7 +888,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) { -- 2.47.3