]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Convert mtree_erase to match xarray interface
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 15 Oct 2019 23:34:51 +0000 (19:34 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 18:56:32 +0000 (14:56 -0400)
commita511e358f59cb803e4af7accd986d972996e9f0c
tree15904ff743afc704f7b9f03919a8e5824cd6775a
parenta5f1b3674ea0f3ff23b71023b01986612f5a5190
maple_tree: Convert mtree_erase to match xarray interface

Return erased value instead of number of freed slots.  This required a
bit of a rework of the test cases.

Also removed two test cases to verify new nodes were used as they were
not necessary when the deleted range is an exact match for the insert.

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