mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
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:
parent
3030578038
commit
d9b2500eef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129028
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue