]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Add mas_next_range() and mas_find_range() interfaces
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 14 Apr 2023 21:06:05 +0000 (17:06 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 24 Apr 2023 20:20:43 +0000 (16:20 -0400)
commit305121ef7a5919aa91088caa57937230aae47216
tree7950194f2f46ed4dddf8d917a6bc9e7518bc46d7
parent5379c480526692902f810146bf48c0320bd44edd
maple_tree: Add mas_next_range() and mas_find_range() interfaces

Some users of the maple tree may want to move to the next range in the
tree, even if it stores a NULL.  This family of function provides that
functionality by advancing one slot at a time and returning the result,
while mas_contiguous() will iterate over the range and stop on
encountering the first NULL.

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