]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memcg: replace memcg ID idr with xarray
authorShakeel Butt <shakeel.butt@linux.dev>
Fri, 9 Aug 2024 17:26:18 +0000 (10:26 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:53:05 +0000 (17:53 -0700)
commit17b932c90b1784ba8eb62a3c36896b507e525251
treec96b1edde0bd82af465c68f1e3c27de875e36164
parent67aef790482fa0e4b3d2754dedb814ee643b0e51
memcg: replace memcg ID idr with xarray

At the moment memcg IDs are managed through IDR which requires external
synchronization mechanisms and makes the allocation code a bit awkward.
Let's switch to xarray and make the code simpler.

Link: https://lkml.kernel.org/r/20240809172618.2946790-1-shakeel.butt@linux.dev
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Suggested-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Muchun Song <muchun.song@linux.dev>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c