FreeBSD: fix build without kernel option MAC

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Mark Johnston <markj@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Gleb Smirnoff <glebius@FreeBSD.org>
Closes #16446
This commit is contained in:
Gleb Smirnoff 2024-08-15 09:08:43 -07:00 committed by GitHub
parent d2ccc21552
commit 83f359245a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6125,7 +6125,9 @@ zfs_freebsd_copy_file_range(struct vop_copy_file_range_args *ap)
error == EOPNOTSUPP) error == EOPNOTSUPP)
goto bad_locked_fallback; goto bad_locked_fallback;
*ap->a_lenp = (size_t)len; *ap->a_lenp = (size_t)len;
#ifdef MAC
out_locked: out_locked:
#endif
if (invp != outvp) if (invp != outvp)
VOP_UNLOCK(invp); VOP_UNLOCK(invp);
VOP_UNLOCK(outvp); VOP_UNLOCK(outvp);