]> 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>
Thu, 27 Apr 2023 01:40:55 +0000 (21:40 -0400)
commit8c2535ce0d60b492dd9c77f43a7085c3197f3e7d
tree16d126d4fcc24d2e883033f2b2dc861b9f43805f
parent221c1b1179f76c83a8b3d5049bc4777e3dbff618
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