]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Add insert/append operation.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 7 Jan 2019 17:46:05 +0000 (12:46 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:27:59 +0000 (12:27 -0500)
commit74f8cfb58a3a761c27e42aaac389a48fc251238e
tree58e61a95fe4d1fb65f7dbef0b086d055eaa0fc42
parent572662f0fb843862ad489cd8bf6e292d5a11a4cc
maple_tree: Add insert/append operation.

Check for NULL runs by looking for duplicate pivots and coalesce them
into a single entry.  Append and insert into a new node, then replace
the old node and adopt the children.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c
lib/test_maple_tree.c