diff options
author | Jan Kara <jack@suse.cz> | 2006-01-19 02:42:20 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-19 04:20:16 +0100 |
commit | 43c3e6f5abdf6acac9b90c86bf03f995bf7d3d92 (patch) | |
tree | 06c78af9eeab5ad504e949a78e4ffa1e3cbb6067 /fs/jbd | |
parent | [PATCH] jbd: log_do_checkpoint fix (diff) | |
download | linux-43c3e6f5abdf6acac9b90c86bf03f995bf7d3d92.tar.xz linux-43c3e6f5abdf6acac9b90c86bf03f995bf7d3d92.zip |
[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 <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/jbd')
-rw-r--r-- | fs/jbd/commit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/jbd/commit.c b/fs/jbd/commit.c index 002ad2bbc769..29e62d98bae6 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) { |