HomeFreeBSD

Avoid 64bit division in multilist index functions

Description

Avoid 64bit division in multilist index functions

The number of sublists in a multilist is relatively small. We dont need
64 bits to calculate an index. 32 bits is sufficient and makes the
code more efficient.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #12288

Details

Provenance
mavAuthored on Jun 29 2021, 12:59 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 29 2021, 8:15 PM
Parents
rG4ebda5d4d32d: Fix plymouth passphrase prompt with dracut
Branches
Unknown
Tags
Unknown

Event Timeline