]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix off-by-one on append_entry
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 20 Feb 2020 21:36:16 +0000 (16:36 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 18:59:04 +0000 (14:59 -0400)
commit68a4a65cbf9d88e1db20adca8aafadabc1809cd4
tree9d3399d9da03131cacb6db6cd1652057f2207aed
parent2214386e9c6f1589d022abf44fb232f6548db417
maple_tree: Fix off-by-one on append_entry

When appending an entry, ensure that the previous pivot is one less than
the desired range.

Don't subtraction coalesce from the slot calculation as that is now
taken into account within  _mas_add_slot_cnt itself.

Fix testing to kick out if mas_for_each is in a retry loop.

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