]> 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>
Mon, 24 Apr 2023 20:20:43 +0000 (16:20 -0400)
commit0880a7f00fc6d2216cedd537f62decfe6f6f96f4
tree32cb63c682c4ba9e42fe41337116b098f108ab78
parent6c02c00eb4891597364edfdf0814552abd13c38a
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