Lines Matching refs:old
282 struct audit_chunk *old; in replace_mark_chunk() local
285 old = mark_chunk(mark); in replace_mark_chunk()
289 if (old) in replace_mark_chunk()
290 old->mark = NULL; in replace_mark_chunk()
293 static void replace_chunk(struct audit_chunk *new, struct audit_chunk *old) in replace_chunk() argument
298 new->key = old->key; in replace_chunk()
299 list_splice_init(&old->trees, &new->trees); in replace_chunk()
302 for (i = j = 0; j < old->count; i++, j++) { in replace_chunk()
303 if (!old->owners[j].owner) { in replace_chunk()
307 owner = old->owners[j].owner; in replace_chunk()
309 new->owners[i].index = old->owners[j].index - j + i; in replace_chunk()
313 list_replace_init(&old->owners[j].list, &new->owners[i].list); in replace_chunk()
315 replace_mark_chunk(old->mark, new); in replace_chunk()
322 list_replace_rcu(&old->hash, &new->hash); in replace_chunk()
461 struct audit_chunk *chunk, *old; in tag_chunk() local
477 old = mark_chunk(mark); in tag_chunk()
478 for (n = 0; n < old->count; n++) { in tag_chunk()
479 if (old->owners[n].owner == tree) { in tag_chunk()
488 chunk = alloc_chunk(old->count + 1); in tag_chunk()
516 replace_chunk(chunk, old); in tag_chunk()
520 audit_mark_put_chunk(old); in tag_chunk()
874 int audit_tag_tree(char *old, char *new) in audit_tag_tree() argument
891 err = kern_path(old, 0, &path1); in audit_tag_tree()