diff options
author | Liam R. Howlett <Liam.Howlett@oracle.com> | 2023-11-01 13:16:26 -0400 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-12 10:56:58 -0800 |
commit | 9a40d45c1f2c49273c04938ec3d7849f685eb3c1 (patch) | |
tree | 6f0b80f258d7519230a7507dc06f7cd95f9de12a /tools | |
parent | 067311d33e650adfe7ae23765959ddcc1ba18510 (diff) | |
download | linux-stable-9a40d45c1f2c49273c04938ec3d7849f685eb3c1.tar.gz linux-stable-9a40d45c1f2c49273c04938ec3d7849f685eb3c1.tar.bz2 linux-stable-9a40d45c1f2c49273c04938ec3d7849f685eb3c1.zip |
maple_tree: remove mas_searchable()
Now that the status of the maple state is outside of the node, the
mas_searchable() function can be dropped for easier open-coding of what is
going on.
Link: https://lkml.kernel.org/r/20231101171629.3612299-10-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Peng Zhang <zhangpeng.00@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/radix-tree/maple.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/testing/radix-tree/maple.c b/tools/testing/radix-tree/maple.c index 857c439e6bbc..56ae47291ee0 100644 --- a/tools/testing/radix-tree/maple.c +++ b/tools/testing/radix-tree/maple.c @@ -974,8 +974,10 @@ retry: if (likely(mas->offset != MAPLE_NODE_SLOTS)) entry = mas_get_slot(mas, mas->offset); - if (mas_dead_node(mas, index)) + if (mas_is_active(mas) && mte_dead_node(mas->node)) { + mas_set(mas, index); goto retry; + } return entry; } |