Avoid two 64-bit divisions per scanned block
commit1cd72b9c1348bbc71310fb6c3d49670362faf306
authorAlexander Motin <mav@FreeBSD.org>
Mon, 27 Jun 2022 18:08:21 +0000 (27 14:08 -0400)
committerGitHub <noreply@github.com>
Mon, 27 Jun 2022 18:08:21 +0000 (27 11:08 -0700)
tree9ad034facfb14295089f0a7840d5e775c706e292
parentc0bf952c846100750f526c2a32ebec17694a201b
Avoid two 64-bit divisions per scanned block

Change math to make it like the ARC, using multiplications instead.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #13591
module/zfs/dsl_scan.c