]> 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>
Fri, 21 Apr 2023 14:12:31 +0000 (10:12 -0400)
commit5898eced54ce56583c70552b0bda93f33eb32d62
tree4f38dd735372f253f5dcca73df767dec901d7c89
parent23e8edaa7e87083f07510923cf5a996ebc3d41c7
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