summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKaho Ng <ngkaho1234@gmail.com>2017-06-30 20:05:07 +0800
committerKaho Ng <ngkaho1234@gmail.com>2017-06-30 20:07:56 +0800
commitf371bc8b84dfe7431b4513b1fefb76e3f9a1fdc5 (patch)
treeec5ddcc212d2d35d57c748bfbf4ed128958b2f4b /src
parent47bbb862d874321903f8881761ee7ca94674142a (diff)
ext4_journal: fix not purging enough transactions
We have to purge all consecutive transactions that has all its buffers written to persistent location.
Diffstat (limited to 'src')
-rw-r--r--src/ext4_journal.c2
1 files changed, 1 insertions, 1 deletions
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);
}