]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Change mas_start to return the entry in a single pointer
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 15 Oct 2019 18:38:45 +0000 (14:38 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:28:14 +0000 (12:28 -0500)
commite5183ce9489269d72afae6a00608a454025edf2d
tree64fb2b45bb24b29797ed0ce2f2a78bc31a733f26
parent071b468e9bd1a0fcfba8bfad338ca8baaf069821
maple_tree: Change mas_start to return the entry in a single pointer
tree.

There are now three cases of the mas_start return:
 If it's an empty tree:     NULL & mas->node == MAS_NONE
 If it's a single entry:    The entry & mas->node == MAS_ROOT
 If it's a tree:            NULL & mas->node == safe root node.

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