mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-10 08:33:14 +00:00
[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>
This commit is contained in:
parent
8d3c7fce2d
commit
43c3e6f5ab
1 changed files with 2 additions and 1 deletions
|
@ -829,7 +829,8 @@ restart_loop:
|
||||||
journal->j_committing_transaction = NULL;
|
journal->j_committing_transaction = NULL;
|
||||||
spin_unlock(&journal->j_state_lock);
|
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);
|
__journal_drop_transaction(journal, commit_transaction);
|
||||||
} else {
|
} else {
|
||||||
if (journal->j_checkpoint_transactions == NULL) {
|
if (journal->j_checkpoint_transactions == NULL) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue