In r1.190, vslock() and vsunlock() were bogusly made to do a "user wire"

and a "system unwire."  Make this a "system wire" and "system unwire."

Reviewed by:	alc
This commit is contained in:
Brian Feldman 2004-05-07 11:43:24 +00:00
parent 3030578038
commit d9b2500eef

View File

@ -216,7 +216,7 @@ vslock(void *addr, size_t len)
return (EAGAIN);
#endif
error = vm_map_wire(&curproc->p_vmspace->vm_map, start, end,
VM_MAP_WIRE_USER | VM_MAP_WIRE_NOHOLES);
VM_MAP_WIRE_SYSTEM | VM_MAP_WIRE_NOHOLES);
/*
* Return EFAULT on error to match copy{in,out}() behaviour
* rather than returning ENOMEM like mlock() would.