ref: f371bc8b84dfe7431b4513b1fefb76e3f9a1fdc5
parent: 47bbb862d874321903f8881761ee7ca94674142a
author: Kaho Ng <ngkaho1234@gmail.com>
date: Fri Jun 30 16:05:07 EDT 2017
ext4_journal: fix not purging enough transactions We have to purge all consecutive transactions that has all its buffers written to persistent location.
--- a/src/ext4_journal.c
+++ b/src/ext4_journal.c
@@ -2141,7 +2141,7 @@
TAILQ_REMOVE(&journal->cp_queue, trans, trans_node);
jbd_journal_free_trans(journal, trans, false);
- jbd_journal_purge_cp_trans(journal, false, true);
+ jbd_journal_purge_cp_trans(journal, false, false);
jbd_journal_write_sb(journal);
jbd_write_sb(journal->jbd_fs);
}