]> 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)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 25 Jan 2024 10:02:06 +0000 (11:02 +0100)
commit62c3d1627401f4c2a40f4444f9845cc4d5b7fded
treefb1c813a1cea282739a9828381a42fdf65261eea
parent4b22ac2a7c38de3bc1b857855a9ab8f03e3b3dfa
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