mirror_zfs/include/os/freebsd/zfs/sys
Ryan Moeller 127daad223 Avoid possibility of division by zero
When hz > 1000, msec / (1000 / hz) results in division by zero.

I found somewhere in FreeBSD using howmany(msec * hz, 1000) to convert
ms to ticks, avoiding the potential for a zero in the divisor.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #10894
2020-09-09 10:26:03 -07:00
..
freebsd_crypto.h Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
Makefile.am Add 'zfs rename -u' to rename without remounting 2020-09-03 16:16:15 -07:00
sha2.h Changes to make openzfs build within FreeBSD buildworld 2020-07-31 21:30:31 -07:00
vdev_os.h Add prototypes 2020-06-18 12:21:32 -07:00
zfs_context_os.h Avoid possibility of division by zero 2020-09-09 10:26:03 -07:00
zfs_ctldir.h Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_dir.h Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_ioctl_compat.h FreeBSD: zfs commands backward compatibility 2020-07-15 21:32:50 -07:00
zfs_vfsops_os.h Add 'zfs rename -u' to rename without remounting 2020-09-03 16:16:15 -07:00
zfs_vnops.h Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
zfs_znode_impl.h FreeBSD: Add support for lockless lookup 2020-08-05 10:19:51 -07:00
zpl.h Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00