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
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D42264

(cherry picked from commit 2c7dd66d09a1b92a4698232996cded6e5315b3bd)

Approved by: markj (mentor)

Details

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