VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Anton Ivanov <anton.ivanov@cambridgegreys.com> 2020-04-22 17:00:01 +0100 committer: Richard Weinberger <richard@nod.at> 2020-06-02 22:37:55 +0200 commit: 54ebe4060fe6c4ab76c79354417612ac9cf4f95e parent: 0b86ce29cfc273501d019b18f31cee7837c8fd2a
Commit Summary:
um: Use fdatasync() when mapping the UBD FSYNC command
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c
index 044836ad7392..e4421dbc4c36 100644
--- a/arch/um/os-Linux/file.c
+++ b/arch/um/os-Linux/file.c
@@ -290,7 +290,7 @@ int os_write_file(int fd, const void *buf, int len)
 
 int os_sync_file(int fd)
 {
-	int n = fsync(fd);
+	int n = fdatasync(fd);
 
 	if (n < 0)
 		return -errno;