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:
parent
0d3cbca80b
commit
76a63ee510
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345418
@ -239,13 +239,8 @@ vdev_file_io_start(zio_t *zio)
|
|||||||
|
|
||||||
switch (zio->io_cmd) {
|
switch (zio->io_cmd) {
|
||||||
case DKIOCFLUSHWRITECACHE:
|
case DKIOCFLUSHWRITECACHE:
|
||||||
#ifdef illumos
|
|
||||||
zio->io_error = VOP_FSYNC(vf->vf_vnode, FSYNC | FDSYNC,
|
zio->io_error = VOP_FSYNC(vf->vf_vnode, FSYNC | FDSYNC,
|
||||||
kcred, NULL);
|
kcred, NULL);
|
||||||
#else
|
|
||||||
zio->io_error = VOP_FSYNC(vf->vf_vnode, MNT_WAIT,
|
|
||||||
kcred, NULL);
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
zio->io_error = SET_ERROR(ENOTSUP);
|
zio->io_error = SET_ERROR(ENOTSUP);
|
||||||
|
Loading…
Reference in New Issue
Block a user