summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_swap.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-11-22 08:47:20 +0000
committerdg <dg@FreeBSD.org>1994-11-22 08:47:20 +0000
commit33a8fbac39b23ff81aec08701c30e05b7d0f7ebc (patch)
tree277ba1e20ddbbea58291ede6795bc62399522b6b /sys/vm/vm_swap.c
parent4483a2072f474866b988eb3418dba1e185949d22 (diff)
downloadFreeBSD-src-33a8fbac39b23ff81aec08701c30e05b7d0f7ebc.zip
FreeBSD-src-33a8fbac39b23ff81aec08701c30e05b7d0f7ebc.tar.gz
Preallocate the first swap block to work around a failure with swap starting
at physical block 0. Note that this will show up in pstat -s and swapinfo as space "in use". In reality, the space is simply never made available.
Diffstat (limited to 'sys/vm/vm_swap.c')
-rw-r--r--sys/vm/vm_swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c
index e1965bc..be750b1 100644
--- a/sys/vm/vm_swap.c
+++ b/sys/vm/vm_swap.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)vm_swap.c 8.5 (Berkeley) 2/17/94
- * $Id: vm_swap.c,v 1.10 1994/10/22 02:41:19 davidg Exp $
+ * $Id: vm_swap.c,v 1.11 1994/10/22 17:53:35 phk Exp $
*/
#include <sys/param.h>
@@ -404,7 +404,7 @@ swfree(p, index)
return (0);
}
#endif
- for (dvbase = 0; dvbase < nblks; dvbase += dmmax) {
+ for (dvbase = dmmax; dvbase < nblks; dvbase += dmmax) {
blk = nblks - dvbase;
#ifdef SEQSWAP
OpenPOWER on IntegriCloud