]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Reset mas location before walking in mas_rebalance_gaps.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 6 May 2020 03:17:52 +0000 (23:17 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 19:04:40 +0000 (15:04 -0400)
commitc1ad87e61102c5ad5e0098f32fdd01bea7601651
tree048f382ab559b1ffd4a26418b22af3fc07a3bcf3
parent3ca63c0ffdb3f17a15eaacabc3093980dd6caecd
maple_tree: Reset mas location before walking in mas_rebalance_gaps.

After rebalancing, the mas node may not be in the correct location to
find the mas->index, so reset to MAS_START prior to starting the walk.

Added test case for this issue as well.

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