ref: 1e40e86f90db6a80c2217eb74ddd198d7073a258
parent: 8fbe41ad9192b7f32025063298cc7c5786c6cd56
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Wed Dec 16 06:00:25 EST 2015
ext4_journal: IO operations on journal inode are written-through.
--- a/lwext4/ext4_journal.c
+++ b/lwext4/ext4_journal.c
@@ -209,6 +209,9 @@
struct ext4_blockdev *bdev = jbd_fs->inode_ref.fs->bdev;
rc = ext4_block_get(bdev, block, fblock);
+ if (rc == EOK)
+ ext4_bcache_set_flag(block->buf, BC_FLUSH);
+
return rc;
}
@@ -226,6 +229,9 @@
struct ext4_blockdev *bdev = jbd_fs->inode_ref.fs->bdev;
rc = ext4_block_get_noread(bdev, block, fblock);
+ if (rc == EOK)
+ ext4_bcache_set_flag(block->buf, BC_FLUSH);
+
return rc;
}