Lines Matching refs:old_entry
4361 vm_map_entry_t new_entry, old_entry; in vmspace_fork() local
4398 VM_MAP_ENTRY_FOREACH(old_entry, old_map) { in vmspace_fork()
4399 if ((old_entry->eflags & MAP_ENTRY_IS_SUB_MAP) != 0) in vmspace_fork()
4402 inh = old_entry->inheritance; in vmspace_fork()
4403 if ((old_entry->eflags & MAP_ENTRY_GUARD) != 0 && in vmspace_fork()
4416 object = old_entry->object.vm_object; in vmspace_fork()
4418 vm_map_entry_back(old_entry); in vmspace_fork()
4419 object = old_entry->object.vm_object; in vmspace_fork()
4427 if (old_entry->eflags & MAP_ENTRY_NEEDS_COPY) { in vmspace_fork()
4428 vm_object_shadow(&old_entry->object.vm_object, in vmspace_fork()
4429 &old_entry->offset, in vmspace_fork()
4430 old_entry->end - old_entry->start, in vmspace_fork()
4431 old_entry->cred, in vmspace_fork()
4434 old_entry->eflags &= ~MAP_ENTRY_NEEDS_COPY; in vmspace_fork()
4435 old_entry->cred = NULL; in vmspace_fork()
4443 object = old_entry->object.vm_object; in vmspace_fork()
4447 if (old_entry->cred != NULL) { in vmspace_fork()
4450 object->cred = old_entry->cred; in vmspace_fork()
4451 object->charge = old_entry->end - in vmspace_fork()
4452 old_entry->start; in vmspace_fork()
4453 old_entry->cred = NULL; in vmspace_fork()
4462 if (old_entry->eflags & MAP_ENTRY_WRITECNT && in vmspace_fork()
4480 *new_entry = *old_entry; in vmspace_fork()
4503 (old_entry->end - old_entry->start), in vmspace_fork()
4504 old_entry->start); in vmspace_fork()
4512 *new_entry = *old_entry; in vmspace_fork()
4524 vm_map_copy_entry(old_map, new_map, old_entry, in vmspace_fork()
4537 new_entry->start = old_entry->start; in vmspace_fork()
4538 new_entry->end = old_entry->end; in vmspace_fork()
4539 new_entry->eflags = old_entry->eflags & in vmspace_fork()
4543 new_entry->protection = old_entry->protection; in vmspace_fork()
4544 new_entry->max_protection = old_entry->max_protection; in vmspace_fork()