summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_extern.h
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-05-14 03:00:10 +0000
committerdg <dg@FreeBSD.org>1995-05-14 03:00:10 +0000
commitb649d7b9c7fc4e854447610d77a8f589d6d879df (patch)
treee3f8adb9c567dce966929b13f5ef9bc8016008d6 /sys/vm/vm_extern.h
parent8f5311b61712fdd904658b7a56c5832f71bffcab (diff)
downloadFreeBSD-src-b649d7b9c7fc4e854447610d77a8f589d6d879df.zip
FreeBSD-src-b649d7b9c7fc4e854447610d77a8f589d6d879df.tar.gz
Changed swap partition handling/allocation so that it doesn't
require specific partitions be mentioned in the kernel config file ("swap on foo" is now obsolete). From Poul-Henning: The visible effect is this: As default, unless options "NSWAPDEV=23" is in your config, you will have four swap-devices. You can swapon(2) any block device you feel like, it doesn't have to be in the kernel config. There is a performance/resource win available by getting the NSWAPDEV right (but only if you have just one swap-device ??), but using that as default would be too restrictive. The invisible effect is that: Swap-handling disappears from the $arch part of the kernel. It gets a lot simpler (-145 lines) and cleaner. Reviewed by: John Dyson, David Greenman Submitted by: Poul-Henning Kamp, with minor changes by me.
Diffstat (limited to 'sys/vm/vm_extern.h')
-rw-r--r--sys/vm/vm_extern.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/vm/vm_extern.h b/sys/vm/vm_extern.h
index fb752c1..997f41a 100644
--- a/sys/vm/vm_extern.h
+++ b/sys/vm/vm_extern.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vm_extern.h 8.2 (Berkeley) 1/12/94
- * $Id: vm_extern.h,v 1.13 1995/03/16 18:17:08 bde Exp $
+ * $Id: vm_extern.h,v 1.14 1995/05/10 18:56:04 davidg Exp $
*/
#ifndef _VM_EXTERN_H_
@@ -98,10 +98,9 @@ void loadav __P((struct loadavg *));
void munmapfd __P((struct proc *, int));
int pager_cache __P((vm_object_t, boolean_t));
void sched __P((void));
-void swapinit __P((void));
+int swaponvp __P((struct proc *, struct vnode *, dev_t , u_long ));
void swapout __P((struct proc *));
void swapout_threads __P((void));
-int swfree __P((struct proc *, int));
void swstrategy __P((struct buf *));
void thread_block __P((char *));
void thread_sleep __P((int, simple_lock_t, boolean_t));
OpenPOWER on IntegriCloud