From f371bc8b84dfe7431b4513b1fefb76e3f9a1fdc5 Mon Sep 17 00:00:00 2001 From: Kaho Ng Date: Fri, 30 Jun 2017 20:05:07 +0800 Subject: [PATCH] ext4_journal: fix not purging enough transactions We have to purge all consecutive transactions that has all its buffers written to persistent location. --- src/ext4_journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext4_journal.c b/src/ext4_journal.c index fbdf233..d5dada3 100644 --- a/src/ext4_journal.c +++ b/src/ext4_journal.c @@ -2141,7 +2141,7 @@ static void jbd_trans_end_write(struct ext4_bcache *bc __unused, 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); }