diff options
author | alc <alc@FreeBSD.org> | 2010-12-25 23:54:50 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-12-25 23:54:50 +0000 |
commit | d835374cc6aa0f3ea74aa41627b98c2f43ebb4a3 (patch) | |
tree | c618a76e8e8ec673a3a7a4df63862d96b4471fc3 /sys/vm | |
parent | 6847bfd5821deedbb259c4e8efe6ae27e39c2659 (diff) | |
download | FreeBSD-src-d835374cc6aa0f3ea74aa41627b98c2f43ebb4a3.zip FreeBSD-src-d835374cc6aa0f3ea74aa41627b98c2f43ebb4a3.tar.gz |
Retire vm_fault_quick(). It's no longer used.
Reviewed by: kib@
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_extern.h | 1 | ||||
-rw-r--r-- | sys/vm/vm_fault.c | 18 |
2 files changed, 0 insertions, 19 deletions
diff --git a/sys/vm/vm_extern.h b/sys/vm/vm_extern.h index 4c1e304..80dc975 100644 --- a/sys/vm/vm_extern.h +++ b/sys/vm/vm_extern.h @@ -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); diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 8e649d2..41633fc 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -1120,24 +1120,6 @@ error: } /* - * 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: * * Wire down a range of virtual addresses in a map. |