Lines Matching defs:victim
553 void rb_replace_node(struct rb_node *victim, struct rb_node *new,
556 struct rb_node *parent = rb_parent(victim);
558 /* Copy the pointers/colour from the victim to the replacement */
559 *new = *victim;
562 if (victim->rb_left)
563 rb_set_parent(victim->rb_left, new);
564 if (victim->rb_right)
565 rb_set_parent(victim->rb_right, new);
566 __rb_change_child(victim, new, parent, root);
570 void rb_replace_node_rcu(struct rb_node *victim, struct rb_node *new,
573 struct rb_node *parent = rb_parent(victim);
575 /* Copy the pointers/colour from the victim to the replacement */
576 *new = *victim;
579 if (victim->rb_left)
580 rb_set_parent(victim->rb_left, new);
581 if (victim->rb_right)
582 rb_set_parent(victim->rb_right, new);
588 __rb_change_child_rcu(victim, new, parent, root);