UPSTREAM: maple_tree: change mas_adopt_children() parent usage
All calls to mas_adopt_children() currently pass the parent as the node in the maple state. Allow for the parent pointer that is passed in to be used instead. Link: https://lkml.kernel.org/r/20230804165951.2661157-6-Liam.Howlett@oracle.com Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Paul E. McKenney <paulmck@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> (cherry picked from commit 068bafcac0b89ee5b1616793231eb4b3dd41e3f0) Bug: 305159730 Signed-off-by: Hyesoo Yu <hyesoo.yu@samsung.com> Change-Id: I34100dada9367e2bfe00c6a921c581455a0b4f54
This commit is contained in:
parent
e0f829b74b
commit
47e3b4920d
@ -1732,7 +1732,7 @@ static inline void mas_adopt_children(struct ma_state *mas,
|
||||
struct maple_enode *parent)
|
||||
{
|
||||
enum maple_type type = mte_node_type(parent);
|
||||
struct maple_node *node = mas_mn(mas);
|
||||
struct maple_node *node = mte_to_node(parent);
|
||||
void __rcu **slots = ma_slots(node, type);
|
||||
unsigned long *pivots = ma_pivots(node, type);
|
||||
struct maple_enode *child;
|
||||
|
Loading…
Reference in New Issue
Block a user