Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BRT: Skip getting length in brt_entry_lookup() #15950

Merged
merged 1 commit into from
Mar 26, 2024

Commits on Mar 1, 2024

  1. 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.
    
    Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
    Sponsored by:	iXsystems, Inc.
    amotin committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    16f8e84 View commit details
    Browse the repository at this point in the history