Revert r345410, VOP_FSYNC change in ZFS vdev_file

I overlooked the fact that that VOP_FSYNC() call is not a FreeBSD VFS
call, but a macro that provides an illumos-compatible wrapper for the
FreeBSD operation.

PR:		236475
Reported by:	lwhsu
Pointyhat to:	avg
This commit is contained in:
Andriy Gapon 2019-03-22 17:44:47 +00:00
parent 0d3cbca80b
commit 76a63ee510
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345418

View File

@ -239,13 +239,8 @@ vdev_file_io_start(zio_t *zio)
switch (zio->io_cmd) {
case DKIOCFLUSHWRITECACHE:
#ifdef illumos
zio->io_error = VOP_FSYNC(vf->vf_vnode, FSYNC | FDSYNC,
kcred, NULL);
#else
zio->io_error = VOP_FSYNC(vf->vf_vnode, MNT_WAIT,
kcred, NULL);
#endif
break;
default:
zio->io_error = SET_ERROR(ENOTSUP);