diff options
author | Andriy Gapon <avg@FreeBSD.org> | 2019-03-22 17:44:47 +0000 |
---|---|---|
committer | Andriy Gapon <avg@FreeBSD.org> | 2019-03-22 17:44:47 +0000 |
commit | 76a63ee510c7a40a5a5d20977c47979882af9088 (patch) | |
tree | a17ffe5c704cd6ab06abdea643ab25e5c09bbce3 /sys/cddl/contrib/opensolaris/uts | |
parent | 0d3cbca80bcb2ac3eb639d63f7bc17cd3c7d5e33 (diff) | |
download | src-76a63ee510c7a40a5a5d20977c47979882af9088.tar.gz src-76a63ee510c7a40a5a5d20977c47979882af9088.zip |
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
Notes
Notes:
svn path=/head/; revision=345418
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c index 51ce7404ce3f..6cc5343b5e69 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c @@ -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); |