]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Add erase support.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 10 Jan 2019 16:08:14 +0000 (11:08 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 18:55:10 +0000 (14:55 -0400)
commita2b99b5ce016e7cce3b823c3df6aef04c0b08792
treea0a5faea0fcd8954f97b88b840be9536db9769f4
parentfb5c9b9636386fe711874e258bdb9ee69160ee57
maple_tree: Add erase support.

Refactor replacing a node in a tree to its own function and use that
with the erase and insert functions.

Erase NULLs the range in which the index resides and coalesces adjacent
NULLs if allocation succeeds.

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