Date: Mon, 15 Aug 2016 19:42:21 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r304182 - head/sys/compat/cloudabi Message-ID: <201608151942.u7FJgL99007373@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608151942.u7FJgL99007373>