mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
maple_tree: mas_start() reset depth on dead node
When a dead node is detected, the depth has already been set to 1 so reset it to 0. Link: https://lkml.kernel.org/r/20230518145544.1722059-22-Liam.Howlett@oracle.com Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Reviewed-by: Peng Zhang <zhangpeng.00@bytedance.com> Cc: David Binderman <dcb314@hotmail.com> Cc: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Vernon Yang <vernon2gm@gmail.com> Cc: Wei Yang <richard.weiyang@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
23e734ecd9
commit
d04118605f
@ -1396,9 +1396,9 @@ static inline struct maple_enode *mas_start(struct ma_state *mas)
|
||||
|
||||
mas->min = 0;
|
||||
mas->max = ULONG_MAX;
|
||||
mas->depth = 0;
|
||||
|
||||
retry:
|
||||
mas->depth = 0;
|
||||
root = mas_root(mas);
|
||||
/* Tree with nodes */
|
||||
if (likely(xa_is_node(root))) {
|
||||
|
Loading…
Reference in New Issue
Block a user