HomeFreeBSD

linuxkpi: dma_get_cache_alignment(): Fix off-by-one result

Description

linuxkpi: dma_get_cache_alignment(): Fix off-by-one result

Substituting 'uma_align_cache' by the appropriately named accessor
uma_get_cache_align_mask() made apparent that dma_get_cache_alignment()
was off by one, since it was defined to be the mask derived from the
alignment value.

Reviewed by: markj, bz
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D42264

Details

Provenance
olceAuthored on Oct 13 2023, 3:13 PM
markjCommitted on Nov 2 2023, 1:30 PM
Reviewer
markj
Differential Revision
D42264: linuxkpi: dma_get_cache_alignment(): Fix off-by-one result
Parents
rG87090f5e5a7b: uma: New check_align_mask(): Validate alignments (INVARIANTS)
Branches
Unknown
Tags
Unknown