]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Introduce mas_next_slot() interface
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 7 Apr 2023 01:05:55 +0000 (21:05 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 21 Apr 2023 14:11:32 +0000 (10:11 -0400)
commit020ab8c53fcae100372daff8f78591c934e1798b
tree5dffdd1eb1997545171a5cac94d41605b39edcae
parentb470be47c417cfff21ea538498c9a468de6681d4
maple_tree: Introduce mas_next_slot() interface

Sometimes, during a tree walk, the user needs the next slot regardless
of if it is empty or not.  Add an interface to get the next slot.

Since there are no consecutive NULLs allowed in the tree, the mas_next()
function can only advance two slots at most.  So use the new
mas_next_slot() interface to align both implementations.

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