]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix mas_prev() from skipping entries.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 30 Nov 2020 20:27:00 +0000 (15:27 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:33:29 +0000 (12:33 -0500)
commitd406ea81345072659002afbe8fce43b48ceb75aa
tree5d8e916965c84038fe8dd469bd636042ba31a014
parent0d821f81fabab0236b1968988661011ab1d33df5
maple_tree: Fix mas_prev() from skipping entries.

When searching backwards, if the node wasn't fully full then the pivot could
be zero and thus return there was no previous entry in the node.  Also set
mas.last/mas.index to ensure correct prev/next functions

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