diff options
author | Jan Kara <jack@suse.cz> | 2007-07-15 23:37:20 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 09:05:34 -0700 |
commit | f89b779508f457b2af05dd5ac82a425db4a56ee3 (patch) | |
tree | 868baf5eb5cdb8ddce1b8e0512238b596c83c438 /fs/jbd2 | |
parent | fe28e42b99173ba088b1d8448e53029e100bff27 (diff) | |
download | linux-3.10-f89b779508f457b2af05dd5ac82a425db4a56ee3.tar.gz linux-3.10-f89b779508f457b2af05dd5ac82a425db4a56ee3.tar.bz2 linux-3.10-f89b779508f457b2af05dd5ac82a425db4a56ee3.zip |
jbd2 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 <jack@suse.cz>
Cc: Chuck Ebbert <cebbert@redhat.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: <linux-ext4@vger.kernel.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/jbd2')
-rw-r--r-- | fs/jbd2/commit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index 2856e1100a5..c0f59d1b13d 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c @@ -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) { |