From: Liam R. Howlett Date: Mon, 6 Nov 2023 15:45:51 +0000 (-0500) Subject: maple_tree: update forking to separate maple state and node X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3773fa4f9b08ba2da30b987cbdf9901478e5680c;p=users%2Fjedix%2Flinux-maple.git maple_tree: update forking to separate maple state and node Just a small change to the forking code after rebasing the maple status changes on top. Link: https://lkml.kernel.org/r/20231106154551.615042-1-Liam.Howlett@oracle.com Signed-off-by: Liam R. Howlett Cc: Peng Zhang Signed-off-by: Andrew Morton --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 3bed0b5c044d5..38e5ec57e49c7 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -6693,7 +6693,7 @@ static inline void mas_dup_build(struct ma_state *mas, struct ma_state *new_mas, node = mt_alloc_one(gfp); if (!node) { - new_mas->node = MAS_NONE; + new_mas->status = ma_none; mas_set_err(mas, -ENOMEM); return; } diff --git a/tools/testing/radix-tree/maple.c b/tools/testing/radix-tree/maple.c index 5d1c2852e2ad3..857c439e6bbc2 100644 --- a/tools/testing/radix-tree/maple.c +++ b/tools/testing/radix-tree/maple.c @@ -35956,7 +35956,7 @@ static int __init compare_tree(struct maple_tree *mt_a, struct maple_tree *mt_b) if (mas_is_ptr(&mas_a) || mas_is_ptr(&mas_b)) { if (!(mas_is_ptr(&mas_a) && mas_is_ptr(&mas_b))) { - pr_err("One is MAS_ROOT and the other is not.\n"); + pr_err("One is ma_root and the other is not.\n"); return -1; } return 0; @@ -35965,7 +35965,7 @@ static int __init compare_tree(struct maple_tree *mt_a, struct maple_tree *mt_b) while (!mas_is_none(&mas_a) || !mas_is_none(&mas_b)) { if (mas_is_none(&mas_a) || mas_is_none(&mas_b)) { - pr_err("One is MAS_NONE and the other is not.\n"); + pr_err("One is ma_none and the other is not.\n"); return -1; }