Re: [PATCH v2 2/4] rust: xarray: abstract `xa_alloc`
From: Matthew Wilcox
Date: Wed Oct 08 2025 - 09:40:48 EST
On Wed, Oct 08, 2025 at 01:04:11PM +0000, Alice Ryhl wrote:
> > + limit: Range<u32>,
>
> The Range type is inclusive/exclusive but xa_limit is
> inclusive/inclusive. They should match to avoid confusion.
... and xa_limit is inclusive at the top end to be sure that we can
actually allocate 2^32-1. Or does Range handle that by using 0 to mean
that 2^32-1 is allowed?
>