Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Dec 2010 23:54:51 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216701 - head/sys/vm
Message-ID:  <201012252354.oBPNspZa096162@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012252354.oBPNspZa096162>