]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/mips/loongson/common/mem.c
vfs: Implement proper O_SYNC semantics
[mirror_ubuntu-bionic-kernel.git] / arch / mips / loongson / common / mem.c
index 7c92f79b64806caba9ae2168e10a9509f4580b36..e94ef158f9800630dd23a158dec374a6b861cbc0 100644 (file)
@@ -26,7 +26,7 @@ void __init prom_init_memory(void)
 /* override of arch/mips/mm/cache.c: __uncached_access */
 int __uncached_access(struct file *file, unsigned long addr)
 {
-       if (file->f_flags & O_SYNC)
+       if (file->f_flags & O_DSYNC)
                return 1;
 
        return addr >= __pa(high_memory) ||