Re: [External] Re: [PATCH 7/9] ida: introduce ida_max() to return the maximum allocated ID

From: Muchun Song
Date: Thu Apr 29 2021 - 03:37:38 EST


On Thu, Apr 29, 2021 at 2:49 PM Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
>
> On Wed, Apr 28, 2021 at 05:49:47PM +0800, Muchun Song wrote:
> > Introduce ida_max() to return the maximum allocated ID. This will be
> > used by memory cgroup in the later patch.
>
> Please also add a lower-level xa_max as this funcationalty would also
> come in handy at the xarray level in a few places.

Good suggestion. This way is also efficient. Thanks.