fs: push sync_filesystem() down to the file system's remount_fs()
[firefly-linux-kernel-4.4.55.git] / fs / ubifs / super.c
index f21acf0ef01f9535b7d3a576361c387593414747..0d0036750c7140f8c78c01435802a2b7347665d5 100644 (file)
@@ -1840,6 +1840,7 @@ static int ubifs_remount_fs(struct super_block *sb, int *flags, char *data)
        int err;
        struct ubifs_info *c = sb->s_fs_info;
 
+       sync_filesystem(sb);
        dbg_gen("old flags %#lx, new flags %#x", sb->s_flags, *flags);
 
        err = ubifs_parse_options(c, data, 1);