Metadata is changed in a transaction, and btrfs_sync_fs() waits for the ordered extents and commits it. There is no ->write_inode(). Signed-off-by: Josef Bacik --- fs/btrfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 7fabb775d4e3..cdecf90bdae0 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -981,7 +981,7 @@ static int btrfs_fill_super(struct super_block *sb, #endif sb->s_xattr = btrfs_xattr_handlers; sb->s_time_gran = 1; - sb->s_iflags |= SB_I_CGROUPWB | SB_I_ALLOW_HSM; + sb->s_iflags |= SB_I_CGROUPWB | SB_I_ALLOW_HSM | SB_I_OVL_USE_SYNC_FS; ret = super_setup_bdi(sb); if (ret) { -- 2.55.0