svn commit: r304182 - head/sys/compat/cloudabi

Ed Schouten ed at FreeBSD.org
Mon Aug 15 19:42:22 UTC 2016


Author: ed
Date: Mon Aug 15 19:42:21 2016
New Revision: 304182
URL: https://svnweb.freebsd.org/changeset/base/304182

Log:
  Let CloudABI use fdatasync() as well.
  
  Now that FreeBSD supports fdatasync() natively, we can tidy up
  CloudABI's equivalent system call to use that instead.

Modified:
  head/sys/compat/cloudabi/cloudabi_fd.c

Modified: head/sys/compat/cloudabi/cloudabi_fd.c
==============================================================================
--- head/sys/compat/cloudabi/cloudabi_fd.c	Mon Aug 15 19:37:18 2016	(r304181)
+++ head/sys/compat/cloudabi/cloudabi_fd.c	Mon Aug 15 19:42:21 2016	(r304182)
@@ -172,12 +172,11 @@ int
 cloudabi_sys_fd_datasync(struct thread *td,
     struct cloudabi_sys_fd_datasync_args *uap)
 {
-	struct fsync_args fsync_args = {
+	struct fdatasync_args fdatasync_args = {
 		.fd = uap->fd
 	};
 
-	/* Call into fsync(), as FreeBSD lacks fdatasync(). */
-	return (sys_fsync(td, &fsync_args));
+	return (sys_fdatasync(td, &fdatasync_args));
 }
 
 int


More information about the svn-src-all mailing list