With a journal every change of metadata is part of a transaction, and ext4_sync_fs() commits the running one. ext4_write_inode() has nothing to add to that, it only forces a commit as well. Without a journal the flag stays clear. Signed-off-by: Josef Bacik --- fs/ext4/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 3ace06b4f9e3..037e274dca8a 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -5542,6 +5542,7 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb) err = ext4_load_and_init_journal(sb, es, ctx); if (err) goto failed_mount3a; + sb->s_iflags |= SB_I_OVL_USE_SYNC_FS; if (bdev_read_only(sb->s_bdev)) needs_recovery = 0; } else if (test_opt(sb, NOLOAD) && !sb_rdonly(sb) && -- 2.55.0