Lines Matching defs:old
190 * list_replace_rcu - replace old entry by new one
191 * @old : the element to be replaced
194 * The @old entry will be replaced with the @new entry atomically.
195 * Note: @old should not be empty.
197 static inline void list_replace_rcu(struct list_head *old,
200 new->next = old->next;
201 new->prev = old->prev;
204 old->prev = LIST_POISON2;
518 * hlist_replace_rcu - replace old entry by new one
519 * @old : the element to be replaced
522 * The @old entry will be replaced with the @new entry atomically.
524 static inline void hlist_replace_rcu(struct hlist_node *old,
527 struct hlist_node *next = old->next;
530 WRITE_ONCE(new->pprev, old->pprev);
534 WRITE_ONCE(old->pprev, LIST_POISON2);