mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-28 17:39:23 +03:00
FreeBSD: remove support for FreeBSD < 13.0-RELEASE (#16372)
This includes the last 12.x release (now EOL) and 13.0 development versions (<1300139). Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Reviewed-by: Tony Hutter <hutter2@llnl.gov>
This commit is contained in:
@@ -273,7 +273,7 @@ zfs_vop_fsync(vnode_t *vp)
|
||||
goto drop;
|
||||
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
|
||||
error = VOP_FSYNC(vp, MNT_WAIT, curthread);
|
||||
VOP_UNLOCK1(vp);
|
||||
VOP_UNLOCK(vp);
|
||||
vn_finished_write(mp);
|
||||
drop:
|
||||
return (SET_ERROR(error));
|
||||
@@ -347,14 +347,6 @@ zfs_file_unlink(const char *fnamep)
|
||||
zfs_uio_seg_t seg = UIO_SYSSPACE;
|
||||
int rc;
|
||||
|
||||
#if __FreeBSD_version >= 1300018
|
||||
rc = kern_funlinkat(curthread, AT_FDCWD, fnamep, FD_NONE, seg, 0, 0);
|
||||
#elif __FreeBSD_version >= 1202504 || defined(AT_BENEATH)
|
||||
rc = kern_unlinkat(curthread, AT_FDCWD, __DECONST(char *, fnamep),
|
||||
seg, 0, 0);
|
||||
#else
|
||||
rc = kern_unlinkat(curthread, AT_FDCWD, __DECONST(char *, fnamep),
|
||||
seg, 0);
|
||||
#endif
|
||||
return (SET_ERROR(rc));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user