1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

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.
This commit is contained in:
Ed Schouten 2016-08-15 19:42:21 +00:00
parent 43e5b7b6b3
commit 2256eed3eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304182

View File

@ -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