Lines Matching refs:old
88 static void __proxy_share(struct aa_label *old, struct aa_label *new) in __proxy_share() argument
92 new->proxy = aa_get_proxy(old->proxy); in __proxy_share()
93 __aa_proxy_redirect(old, new); in __proxy_share()
635 static bool __label_replace(struct aa_label *old, struct aa_label *new) in __label_replace() argument
637 struct aa_labelset *ls = labels_set(old); in __label_replace()
640 AA_BUG(!old); in __label_replace()
645 if (!label_is_stale(old)) in __label_replace()
646 __label_make_stale(old); in __label_replace()
648 if (old->flags & FLAG_IN_TREE) { in __label_replace()
649 rb_replace_node(&old->node, &new->node, &ls->root); in __label_replace()
650 old->flags &= ~FLAG_IN_TREE; in __label_replace()
803 bool aa_label_replace(struct aa_label *old, struct aa_label *new) in aa_label_replace() argument
808 if (name_is_shared(old, new) && labels_ns(old) == labels_ns(new)) { in aa_label_replace()
809 write_lock_irqsave(&labels_set(old)->lock, flags); in aa_label_replace()
810 if (old->proxy != new->proxy) in aa_label_replace()
811 __proxy_share(old, new); in aa_label_replace()
813 __aa_proxy_redirect(old, new); in aa_label_replace()
814 res = __label_replace(old, new); in aa_label_replace()
815 write_unlock_irqrestore(&labels_set(old)->lock, flags); in aa_label_replace()
818 struct aa_labelset *ls = labels_set(old); in aa_label_replace()
821 res = __label_remove(old, new); in aa_label_replace()
822 if (labels_ns(old) != labels_ns(new)) { in aa_label_replace()