HomeFreeBSD

BRT: Skip getting length in brt_entry_lookup()

Description

BRT: Skip getting length in brt_entry_lookup()

Unlike DDT, where ZAP values may have different lengths due to
compression, all BRT entries are identical 8-byte counters. It
does not make sense to first fetch the length only to assert it.
zap_lookup_uint64() is specifically designed to work with counters
of different size and should return error if something odd found.
Calling it straight allows to save some measurable CPU time.

Reviewed-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15950

Details

Provenance
mavAuthored on Mar 26 2024, 12:13 AM
GitHub <noreply@github.com>Committed on Mar 26 2024, 12:13 AM
Parents
rGc6be6ce1755a: abd_iter_page: don't use compound heads on Linux <4.5
Branches
Unknown
Tags
Unknown