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

(cherry picked from commit 2c7dd66d09a1b92a4698232996cded6e5315b3bd)

Details

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