]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix mas_next() and mas_walk() setting index/last.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 30 Nov 2020 20:28:21 +0000 (15:28 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:33:29 +0000 (12:33 -0500)
commit3fca2c687c6c53a722d4e583077238f950627c8e
tree92e9ef18c9fbfd7b62b545abd55f8be5f5150837
parentd406ea81345072659002afbe8fce43b48ceb75aa
maple_tree: Fix mas_next() and mas_walk() setting index/last.

Ensure that the last/index is set regardless of if there is a value found.  This
is necessary to ensure prev/next work as expected.  Also update mas_find() to
this new functionality

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c