Retire vm_fault_quick(). It's no longer used.
Reviewed by: kib@
This commit is contained in:
parent
17891d0082
commit
0b47b37621
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216701
@ -85,7 +85,6 @@ int vslock(void *, size_t);
|
||||
void vsunlock(void *, size_t);
|
||||
void vm_object_print(/* db_expr_t */ long, boolean_t, /* db_expr_t */ long,
|
||||
char *);
|
||||
int vm_fault_quick(caddr_t v, int prot);
|
||||
struct sf_buf *vm_imgact_map_page(vm_object_t object, vm_ooffset_t offset);
|
||||
void vm_imgact_unmap_page(struct sf_buf *sf);
|
||||
void vm_thread_dispose(struct thread *td);
|
||||
|
@ -1119,24 +1119,6 @@ vm_fault_quick_hold_pages(vm_map_t map, vm_offset_t addr, vm_size_t len,
|
||||
return (-1);
|
||||
}
|
||||
|
||||
/*
|
||||
* vm_fault_quick:
|
||||
*
|
||||
* Ensure that the requested virtual address, which may be in userland,
|
||||
* is valid. Fault-in the page if necessary. Return -1 on failure.
|
||||
*/
|
||||
int
|
||||
vm_fault_quick(caddr_t v, int prot)
|
||||
{
|
||||
int r;
|
||||
|
||||
if (prot & VM_PROT_WRITE)
|
||||
r = subyte(v, fubyte(v));
|
||||
else
|
||||
r = fubyte(v);
|
||||
return(r);
|
||||
}
|
||||
|
||||
/*
|
||||
* vm_fault_wire:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user