Re: [PATCH v8 05/17] mm: Assign memcg-aware shrinkers bitmap to memcg

From: Matthew Wilcox
Date: Thu Jul 05 2018 - 18:51:13 EST


On Tue, Jul 03, 2018 at 01:50:00PM -0700, Andrew Morton wrote:
> It should be possible to find the highest ID in an IDR tree with a
> straightforward descent of the underlying radix tree, but I doubt if
> that has been wired up. Otherwise a simple loop in
> unregister_memcg_shrinker() would be needed.

Feature request received. I've actually implemented it for the XArray
already, but it should be easy to do for the IDR too.