]> 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>
Tue, 2 May 2023 01:33:05 +0000 (21:33 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 2 May 2023 17:51:57 +0000 (13:51 -0400)
commit457215019b9c400ca055dd2100ae541fe936be4a
treea77d22eb074c554be15c2f24439856d6c83c8504
parent76f560cb804637df50b4e20160858e135a8bc587
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