Author: avg
Date: Fri Mar 22 17:44:47 2019
New Revision: 345418
URL: https://svnweb.freebsd.org/changeset/base/345418

Log:
  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

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c     Fri Mar 
22 17:37:14 2019        (r345417)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c     Fri Mar 
22 17:44:47 2019        (r345418)
@@ -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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to