]> 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>
Tue, 5 Jan 2021 17:28:28 +0000 (12:28 -0500)
commit0ac05e2c872360a8bed7bff44b43fc937bd8affd
treefc85bbba58f026ad32aeb2c4ab46763b5bc1f0ac
parent59684d331f758b86a0216da44578a22fe27c88f5
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