aboutsummaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1996-10-29 22:07:11 +0000
committerJohn Dyson <dyson@FreeBSD.org>1996-10-29 22:07:11 +0000
commit851c12ff1d69ee737c439a4a0902aabc86510218 (patch)
tree8af5b9adf1a0c121f4ca67302eee507f61052f0c /sys/vm
parentb7eed0a0c1984832f78d6c635d57a66ba0e5ca8c (diff)
downloadsrc-851c12ff1d69ee737c439a4a0902aabc86510218.tar.gz
src-851c12ff1d69ee737c439a4a0902aabc86510218.zip
Change mmap to use OBJT_DEFAULT instead of OBJT_SWAP by default
for anonymous objects. The system will automatically change the type to SWAP if needed (for size or pageout reasons.)
Notes
Notes: svn path=/head/; revision=19259
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_mmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index fdaf87eb1c8f..6bfece3d51a9 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -38,7 +38,7 @@
* from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$
*
* @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94
- * $Id: vm_mmap.c,v 1.51 1996/10/13 07:16:50 phk Exp $
+ * $Id: vm_mmap.c,v 1.52 1996/10/24 02:56:23 dyson Exp $
*/
/*
@@ -881,7 +881,7 @@ vm_mmap(map, addr, size, prot, maxprot, flags, handle, foff)
* Lookup/allocate object.
*/
if (flags & MAP_ANON) {
- type = OBJT_SWAP;
+ type = OBJT_DEFAULT;
/*
* Unnamed anonymous regions always start at 0.
*/