]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix empty pivot when appending to a perfect fit.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 13 Dec 2019 21:13:55 +0000 (16:13 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 18:56:48 +0000 (14:56 -0400)
commitbd49ae3a610a14772706864ece9a6036ca8ff658
tree86628ac054b346ef048222bc781a5271861ae6df
parente9f16d926bd7b41da3d7f7ad5965357881681b22
maple_tree: Fix empty pivot when appending to a perfect fit.

When appending data to the end of a node which fits perfectly in the
range, it may be that the pivot is 0 but the implied pivot is mas->max.
This would result in a walk operation not finding the value.

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