Re: [PATCH v5 6/6] swiotlb: Remove pointless stride adjustment for allocations >= PAGE_SIZE

Christoph Hellwig
2024-03-05T14:05:49Z

On Mon, Mar 04, 2024 at 01:37:56PM +0000, Robin Murphy wrote:
> FWIW I'm also starting to wonder about getting rid of the alloc_size
> argument and just have SWIOTLB round the end address up to alloc_align_mask
> itself as part of all these calculations. Seems like it could potentially
> end up a little simpler, maybe?

Yes, that does sound simpler and most importantly harder to get wrong..