[PATCH] maple_tree: Fix use of node for global range in mas_wr_spanning_store()

Andrew Morton akpm at linux-foundation.org
Tue Jul 5 19:55:35 PDT 2022

On Wed, 6 Jul 2022 02:05:37 +0000 Liam Howlett <liam.howlett at oracle.com> wrote:

> When writing a range with a NULL which expands to 0 - ULONG_MAX, don't
> use a node to store this value.  Instead, call mas_new_root() which will
> set the tree pointer to NULL and free all the nodes.
> Fix a comment for the allocations in mas_wr_spanning_store().
> Add mas_node_count_gfp() and use it to clean up mas_preallocate().
> Clean up mas_preallocate() and ensure the ma_state is safe on return.
> Update maple_tree.h to set alloc = NULL.


How are we looking now?  Any known issues still being worked on?

More information about the maple-tree mailing list