Skip to content

Commit bc92af3

Browse files
committed
FreeBSD: Fix build on stable/13 after 1302506.
Starting approximately from version 1302506 vn_lock_pair() grown two additional arguments following head. There is a one week hole, but that is closet reference point we have. Reviewed-by: Mateusz Guzik <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes openzfs#15047
1 parent 009d328 commit bc92af3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

module/os/freebsd/zfs/zfs_vnops_os.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6263,7 +6263,8 @@ zfs_freebsd_copy_file_range(struct vop_copy_file_range_args *ap)
62636263
goto bad_write_fallback;
62646264
}
62656265
} else {
6266-
#if __FreeBSD_version >= 1400086
6266+
#if (__FreeBSD_version >= 1302506 && __FreeBSD_version < 1400000) || \
6267+
__FreeBSD_version >= 1400086
62676268
vn_lock_pair(invp, false, LK_EXCLUSIVE, outvp, false,
62686269
LK_EXCLUSIVE);
62696270
#else

0 commit comments

Comments
 (0)