Commit 9bbba56
maple_tree: fix depth tracking in maple_state
It is possible to confuse the depth tracking in the maple state by
searching the same node for values. Fix the depth tracking by moving
where the depth is incremented closer to where the node changes level.
Also change the initial depth setting when using the root node.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Liam R. Howlett <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>1 parent 1fdbed6 commit 9bbba56
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
| 1354 | + | |
1354 | 1355 | | |
1355 | 1356 | | |
1356 | 1357 | | |
| |||
3727 | 3728 | | |
3728 | 3729 | | |
3729 | 3730 | | |
3730 | | - | |
3731 | 3731 | | |
3732 | 3732 | | |
3733 | 3733 | | |
| |||
3739 | 3739 | | |
3740 | 3740 | | |
3741 | 3741 | | |
| 3742 | + | |
3742 | 3743 | | |
3743 | 3744 | | |
3744 | 3745 | | |
| |||
0 commit comments