]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Update mas_start to return the entry on a single pointer
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 15 Oct 2019 18:40:48 +0000 (14:40 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:28:14 +0000 (12:28 -0500)
commitf7cdfec9ae34ade94c9938115d45b054e2b6dbd6
tree6fa8ab61cbcf4c12b6471b03887229aa72240c09
parente5183ce9489269d72afae6a00608a454025edf2d
maple_tree: Update mas_start to return the entry on a single pointer
tree.

mas_start returns:
  If mas->node is an error or MAS_START, return NULL
  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