]>
www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: mas_next() and mas_find() state clean up
mas_next() and mas_find() were not properly setting the internal maple
state when the limits of the search were reached.
mas_find() was not treating MAS_NONE as MAS_PAUSE, so an entry could be
skipped if mas_find() was used after a completed mas_prev() that was
empty.
mas_find() was not correctly setting the node to MAS_NONE on a second
mas_find() on a single entry tree of 0 - 0.
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>