From ac958366444a3d60be89d5103d7110282634c85a Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Mon, 1 Feb 2021 13:48:20 -0500 Subject: [PATCH] mm/mmap: Use mtree_init() in mt_destroy_walk() Don't use MTREE_INIT() Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 19887e46720c..ba89ebfc2af0 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -5156,12 +5156,14 @@ static void mt_destroy_walk(struct rcu_head *head) void **slots; struct maple_node *node = container_of(head, struct maple_node, rcu); struct maple_enode *start; - struct maple_tree mt = MTREE_INIT(mt, node->ma_flags); - MA_STATE(mas, &mt, 0, 0); + struct maple_tree mt; + MA_STATE(mas, NULL, 0, 0); if (ma_is_leaf(node->type)) goto free_leaf; + mtree_init(&mt, node->ma_flags); + mas.tree = &mt; start = mt_mk_node(node, node->type); mas.node = start; slots = mas_destroy_descend(&mas); -- 2.50.1