Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux...
[linux.git] / fs / btrfs / super.c
index 994c409553150eac353bc32ba6bcc5bc4bbdf465..5011aadacab8e4cf1ac291f061f3c6ada24f8b9a 100644 (file)
@@ -1402,6 +1402,7 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
        unsigned int old_metadata_ratio = fs_info->metadata_ratio;
        int ret;
 
+       sync_filesystem(sb);
        btrfs_remount_prepare(fs_info);
 
        ret = btrfs_parse_options(root, data);