svn commit: r216701 - head/sys/vm
Alan Cox
alc at FreeBSD.org
Sat Dec 25 23:54:51 UTC 2010
Author: alc
Date: Sat Dec 25 23:54:50 2010
New Revision: 216701
URL: http://svn.freebsd.org/changeset/base/216701
Log:
Retire vm_fault_quick(). It's no longer used.
Reviewed by: kib@
Modified:
head/sys/vm/vm_extern.h
head/sys/vm/vm_fault.c
Modified: head/sys/vm/vm_extern.h
==============================================================================
--- head/sys/vm/vm_extern.h Sat Dec 25 21:56:25 2010 (r216700)
+++ head/sys/vm/vm_extern.h Sat Dec 25 23:54:50 2010 (r216701)
@@ -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);
Modified: head/sys/vm/vm_fault.c
==============================================================================
--- head/sys/vm/vm_fault.c Sat Dec 25 21:56:25 2010 (r216700)
+++ head/sys/vm/vm_fault.c Sat Dec 25 23:54:50 2010 (r216701)
@@ -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.
More information about the svn-src-all
mailing list