Lines Matching defs:old

187  * __remove_profile - remove old profile, and children
930 * __replace_profile - replace @old with @new on a list
931 * @old: profile to be replaced (NOT NULL)
932 * @new: profile to replace @old with (NOT NULL)
934 * Will duplicate and refcount elements that @new inherits from @old
935 * and will inherit @old children.
937 * refcount @new for list, put @old list refcount
941 static void __replace_profile(struct aa_profile *old, struct aa_profile *new)
945 if (!list_empty(&old->base.profiles)) {
947 list_splice_init_rcu(&old->base.profiles, &lh, synchronize_rcu);
971 struct aa_profile *parent = aa_deref_parent(old);
974 aa_label_replace(&old->label, &new->label);
976 __aafs_profile_migrate_dents(old, new);
980 list_replace_rcu(&old->base.list, &new->base.list);
982 aa_put_profile(old);
984 __list_remove_profile(old);
1013 static void share_name(struct aa_profile *old, struct aa_profile *new)
1016 aa_get_str(old->base.hname);
1017 new->base.hname = old->base.hname;
1018 new->base.name = old->base.name;
1019 new->label.hname = old->label.hname;
1051 * by any task creds via invalidating the old version of the profile, which
1139 &ent->old, &info);
1154 if (ent->old || ent->rename)
1202 if (!ent->old) {
1225 op = (!ent->old && !ent->rename) ? OP_PROF_LOAD : OP_PROF_REPL;
1227 if (ent->old && ent->old->rawdata == ent->new->rawdata &&
1246 if (ent->old) {
1247 share_name(ent->old, ent->new);
1248 __replace_profile(ent->old, ent->new);
1280 op = (ent && !ent->old) ? OP_PROF_LOAD : OP_PROF_REPL;
1292 op = (!tmp->old) ? OP_PROF_LOAD : OP_PROF_REPL;