]> 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, 15 Oct 2019 18:40:48 +0000 (14:40 -0400)
commitcff55c752a8ef0dbc831fa89125a902a0f508d82
tree3fe99ec79cb001c2c5c3c9e3aa7da0e19e2f745e
parent0e83ca2fe0c94a6349e7dc14d9dc46833b0d7904
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