]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Remove GFP_ZERO from kmem_cache_alloc() and
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 5 Dec 2022 18:53:26 +0000 (13:53 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 21:22:37 +0000 (16:22 -0500)
commit19d2434ffbba89cc10a396a91de34bd2b24571d9
treefd43f7ebe8d27d617b1d758a336709bcd7983840
parent6e6c2bb445bc750299cf56daa7f0d3f146f48ce7
maple_tree: Remove GFP_ZERO from kmem_cache_alloc() and
kmem_cache_alloc_bulk()

Preallocations are done on the worst scenario prior to writes.  Delay
the zeroing of nodes until they are needed to avoid needlessly zeroing
nodes that will simply be freed.  Only zero out the necessary area to
keep track of the allocations in the maple state.  Actually zero the
entire node prior to use.

This required internal changes to node counting on allocation, so update
the testcases as well.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c
tools/testing/radix-tree/maple.c