shithub: lwext4

Download patch

ref: e353c4e1812bff98f28c464f6b999a9b47dc8f7a
parent: f3d5e9676d582496bc50e1b59ad44c86888634b8
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Mon Dec 21 19:07:44 EST 2015

ext4_journal: flush transactions on cp_queue with another method.

In the past, transactions on checkpoint queue are flushed by
ext4_block_cache_flush routine.

--- a/lwext4/ext4_journal.c
+++ b/lwext4/ext4_journal.c
@@ -1065,7 +1065,7 @@
 	/* If there is no space left, flush all journalled
 	 * blocks to disk first.*/
 	if (journal->last == journal->start)
-		ext4_block_cache_flush(journal->jbd_fs->inode_ref.fs->bdev);
+		jbd_journal_flush_all_trans(journal);
 
 	return start_block;
 }