From: Liam R. Howlett Date: Fri, 15 Mar 2019 20:26:39 +0000 (-0400) Subject: maple_tree: Use encoded node for getting rcu slot in ma_encoded_parent X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c1971a4cafbedb7f3acce0a4c172d2b09387937f;p=users%2Fjedix%2Flinux-maple.git maple_tree: Use encoded node for getting rcu slot in ma_encoded_parent Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 0ca8195d3f8f6..bcf222cf487b1 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -600,7 +600,7 @@ static inline void ma_encoded_parent(struct ma_state *mas) mas->node = mt_mk_node(gparent, mt_parent_enum(mas, parent)); ma_set_slot(mas, slot); mas_update_limits(mas, slot, mt_parent_enum(mas, parent)); - mas->node = ma_get_rcu_slot(gparent, slot); + mas->node = ma_get_rcu_slot(mas->node, slot); return; } static inline struct maple_node *ma_next_alloc(struct ma_state *ms)