]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
jbd2 commit: fix transaction dropping
authorJan Kara <jack@suse.cz>
Mon, 16 Jul 2007 06:37:20 +0000 (23:37 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:40 +0000 (14:27 -0700)
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>
Cc: Chuck Ebbert <cebbert@redhat.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/jbd2/commit.c

index 2856e1100a5fc302a3582991c081aa3bc3d1c316..c0f59d1b13dc336f82e490810f928f5e7b6b1a70 100644 (file)
@@ -896,7 +896,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) {
                __jbd2_journal_drop_transaction(journal, commit_transaction);
        } else {
                if (journal->j_checkpoint_transactions == NULL) {