On Wed, Nov 25, 2026 at 09:37:03PM +0000, Harry Yoo (Meta) wrote:
> Maple tree users can pass accounted gfp flags down to node allocations > (e.g. arm64 KVM's smccc_filter uses GFP_KERNEL_ACCOUNT). Specify > SLAB_MAY_ACCOUNT when the object may be charged to a memcg. > __GFP_ACCOUNT without SLAB_MAY_ACCOUNT will not be allowed. > > Path: mtree_insert_range(GFP_KERNEL_ACCOUNT) -> mas_nomem() > -> mas_alloc_nodes() -> kmem_cache_alloc(maple_node_cache) > > Cc: "Liam R. Howlett" <li…@infradead.org> > Cc: Alice Ryhl <alic…@google.com> > Cc: Andrew Ballance <andr…@gmail.com> > Cc: mapl…@lists.infradead.org > Signed-off-by: Harry Yoo (Meta) <har…@kernel.org> > --- > lib/maple_tree.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Looks good to me. Reviewed-by: Hao Li <hao…@linux.dev>
-- Thanks, Hao