mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-19 10:51:00 +03:00
127daad223
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 |
||
---|---|---|
.. | ||
freebsd_crypto.h | ||
Makefile.am | ||
sha2.h | ||
vdev_os.h | ||
zfs_context_os.h | ||
zfs_ctldir.h | ||
zfs_dir.h | ||
zfs_ioctl_compat.h | ||
zfs_vfsops_os.h | ||
zfs_vnops.h | ||
zfs_znode_impl.h | ||
zpl.h |