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