]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Remove MA_STATE_PREALLOC
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 8 Aug 2023 18:54:27 +0000 (14:54 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 21 Nov 2023 18:05:08 +0000 (13:05 -0500)
commit7f84e4580552db0e04848423bd12940a54b5c7a0
treeb9624d120a05a69b9c1ab41c85b8ddbae492de00
parent8f15e40cae9f8f414d4d6fb18afb8731b0dc134d
maple_tree: Remove MA_STATE_PREALLOC

MA_SATE_PREALLOC was added to catch any writes that try to allocate when
the maple state is being used in preallocation mode.  This can safely be
removed in favour of the percpu array of nodes.

Note that mas_expected_entries() still expects no allocations during
operation and so MA_STATE_BULK can be used in place of preallocations
for this case, which is primarily used for forking.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
lib/maple_tree.c