Lines Matching refs:victim
524 void rb_replace_node(struct rb_node *victim, struct rb_node *new, in rb_replace_node() argument
527 struct rb_node *parent = rb_parent(victim); in rb_replace_node()
530 *new = *victim; in rb_replace_node()
533 if (victim->rb_left) in rb_replace_node()
534 rb_set_parent(victim->rb_left, new); in rb_replace_node()
535 if (victim->rb_right) in rb_replace_node()
536 rb_set_parent(victim->rb_right, new); in rb_replace_node()
537 __rb_change_child(victim, new, parent, root); in rb_replace_node()
541 void rb_replace_node_rcu(struct rb_node *victim, struct rb_node *new, in rb_replace_node_rcu() argument
544 struct rb_node *parent = rb_parent(victim); in rb_replace_node_rcu()
547 *new = *victim; in rb_replace_node_rcu()
550 if (victim->rb_left) in rb_replace_node_rcu()
551 rb_set_parent(victim->rb_left, new); in rb_replace_node_rcu()
552 if (victim->rb_right) in rb_replace_node_rcu()
553 rb_set_parent(victim->rb_right, new); in rb_replace_node_rcu()
559 __rb_change_child_rcu(victim, new, parent, root); in rb_replace_node_rcu()