ext4: don't save the error information if the block device is read-only
[firefly-linux-kernel-4.4.55.git] / fs / cramfs / inode.c
index 35b1c7bd18b758a30fc03fd4267151d18fcb2281..c0148585670d29968cace0dd342f05a7feb6660e 100644 (file)
@@ -227,6 +227,7 @@ static void cramfs_put_super(struct super_block *sb)
 
 static int cramfs_remount(struct super_block *sb, int *flags, char *data)
 {
+       sync_filesystem(sb);
        *flags |= MS_RDONLY;
        return 0;
 }