]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix check_find_2 testcase.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 15 Oct 2019 02:40:35 +0000 (22:40 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 15 Oct 2019 02:40:35 +0000 (22:40 -0400)
commit7ad745cc4487e5754a11c6e30594e57e85ad9346
tree5b77072ff6b34a74cd473f316c25f3ce17b9aa0b
parentb5e642072c5aebc7b71f2ed0ae8f4bb0de17eadc
maple_tree: Fix check_find_2 testcase.

The check_find_2 exposed issues when the tree was a simple pointer.  The
pointer case was not being handled correctly in mas_start, or _mas_walk.
Fixing these two functions also required fixing calling functions to
check for MAS_ROOT (a root pointer).

There was also a bug in mas_next_entry where the next node was checked -
which is not possible if it's the root node.

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