diff --git a/module/os/freebsd/zfs/zfs_file_os.c b/module/os/freebsd/zfs/zfs_file_os.c index ec7c04717c..d7786d5136 100644 --- a/module/os/freebsd/zfs/zfs_file_os.c +++ b/module/os/freebsd/zfs/zfs_file_os.c @@ -234,13 +234,10 @@ drop: int zfs_file_fsync(zfs_file_t *fp, int flags) { - struct vnode *v; - if (fp->f_type != DTYPE_VNODE) return (EINVAL); - v = fp->f_data; - return (zfs_vop_fsync(v)); + return (zfs_vop_fsync(fp->f_vnode)); } int