diff options
author | dyson <dyson@FreeBSD.org> | 1996-10-29 22:07:11 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-10-29 22:07:11 +0000 |
commit | 70bcdaf44afae5b0a4d7e5aea8f559c65efe77ed (patch) | |
tree | 8af5b9adf1a0c121f4ca67302eee507f61052f0c /sys | |
parent | c9dd1b7e08143ac068bd645241f5b0d4720be64e (diff) | |
download | FreeBSD-src-70bcdaf44afae5b0a4d7e5aea8f559c65efe77ed.zip FreeBSD-src-70bcdaf44afae5b0a4d7e5aea8f559c65efe77ed.tar.gz |
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.)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_mmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index fdaf87e..6bfece3 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. */ |