fs: push sync_filesystem() down to the file system's remount_fs()
[firefly-linux-kernel-4.4.55.git] / fs / efs / super.c
index c6f57a74a559da265bc8f062eab06488d8d7c00a..4709692cd7a048684f7f7ee512383445dcc7c01e 100644 (file)
@@ -113,6 +113,7 @@ static void efs_put_super(struct super_block *s)
 
 static int efs_remount(struct super_block *sb, int *flags, char *data)
 {
+       sync_filesystem(sb);
        *flags |= MS_RDONLY;
        return 0;
 }