mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 11:19:32 +03:00
FreeBSD: Switch from MAXPHYS to maxphys on FreeBSD 13+
Reviewed-by: Allan Jude <allan@klarasystems.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored-By: iXsystems, Inc. Closes #12378
This commit is contained in:
parent
ca14e08cbf
commit
eecceeae9f
@ -381,7 +381,11 @@ vdev_geom_io(struct g_consumer *cp, int *cmds, void **datas, off_t *offsets,
|
|||||||
int i, n_bios, j;
|
int i, n_bios, j;
|
||||||
size_t bios_size;
|
size_t bios_size;
|
||||||
|
|
||||||
|
#if __FreeBSD_version > 1300130
|
||||||
|
maxio = maxphys - (maxphys % cp->provider->sectorsize);
|
||||||
|
#else
|
||||||
maxio = MAXPHYS - (MAXPHYS % cp->provider->sectorsize);
|
maxio = MAXPHYS - (MAXPHYS % cp->provider->sectorsize);
|
||||||
|
#endif
|
||||||
n_bios = 0;
|
n_bios = 0;
|
||||||
|
|
||||||
/* How many bios are required for all commands ? */
|
/* How many bios are required for all commands ? */
|
||||||
|
Loading…
Reference in New Issue
Block a user