summaryrefslogtreecommitdiffstats
path: root/sys/vm/swap_pager.c
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/swap_pager.c
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/swap_pager.c')
-rw-r--r--sys/vm/swap_pager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 32f97a5..e86e700 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -39,7 +39,7 @@
* from: Utah $Hdr: swap_pager.c 1.4 91/04/30$
*
* @(#)swap_pager.c 8.9 (Berkeley) 3/21/94
- * $Id: swap_pager.c,v 1.37 1995/05/07 06:36:59 dyson Exp $
+ * $Id: swap_pager.c,v 1.38 1995/05/10 18:56:02 davidg Exp $
*/
/*
@@ -103,7 +103,7 @@ struct swpagerclean {
#define SWB_EMPTY (-1)
-struct swpclean swap_pager_done; /* list of compileted page cleans */
+struct swpclean swap_pager_done; /* list of completed page cleans */
struct swpclean swap_pager_inuse; /* list of pending page cleans */
struct swpclean swap_pager_free; /* list of free pager clean structs */
struct pagerlst swap_pager_list; /* list of "named" anon regions */
OpenPOWER on IntegriCloud