Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jan Kara and committed by
Linus Torvalds
f89b7795 fe28e42b

+2 -1
+2 -1
fs/jbd2/commit.c
··· 896 896 journal->j_committing_transaction = NULL; 897 897 spin_unlock(&journal->j_state_lock); 898 898 899 - if (commit_transaction->t_checkpoint_list == NULL) { 899 + if (commit_transaction->t_checkpoint_list == NULL && 900 + commit_transaction->t_checkpoint_io_list == NULL) { 900 901 __jbd2_journal_drop_transaction(journal, commit_transaction); 901 902 } else { 902 903 if (journal->j_checkpoint_transactions == NULL) {