fs: push sync_filesystem() down to the file system's remount_fs()
[linux-2.6-block.git] / fs / btrfs / super.c
index 97cc24198554cedd4ada307f2bbe99b80edf4ded..00cd0c57b0b3dd39b59cea127e849eec36e34890 100644 (file)
@@ -1381,6 +1381,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);