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:
parent
aeece5ab80
commit
daab1ae395
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user