diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-06-21 16:20:06 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-06-21 16:20:06 +0000 |
commit | 9a8f5eb89d71175984d0bf3fa601941bcb8bbc1b (patch) | |
tree | c9aa284236c49f3e822b33c425cf48b4ccf8a712 /sys/uvm/uvm_mmap.c | |
parent | 7e13fccd703da0bc68c2560a3c6687efdafc9273 (diff) |
from netbsd: make anons dynamically allocated from pool.
this results in lesse kva waste due to static preallocation of those
for every phys page and also every swap page.
tested by beck krw miod
Diffstat (limited to 'sys/uvm/uvm_mmap.c')
-rw-r--r-- | sys/uvm/uvm_mmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c index d31d982f1d3..42b4db26482 100644 --- a/sys/uvm/uvm_mmap.c +++ b/sys/uvm/uvm_mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_mmap.c,v 1.60 2006/04/06 20:58:06 kurt Exp $ */ +/* $OpenBSD: uvm_mmap.c,v 1.61 2006/06/21 16:20:05 mickey Exp $ */ /* $NetBSD: uvm_mmap.c,v 1.49 2001/02/18 21:19:08 chs Exp $ */ /* @@ -316,7 +316,7 @@ sys_mincore(p, v, retval) anon = amap_lookup(&entry->aref, start - entry->start); /* Don't need to lock anon here. */ - if (anon != NULL && anon->u.an_page != NULL) { + if (anon != NULL && anon->an_page != NULL) { /* * Anon has the page for this entry * offset. @@ -1197,7 +1197,7 @@ uvm_mmap(map, addr, size, prot, maxprot, flags, handle, foff, locklimit, p) if (*addr & PAGE_MASK) return(EINVAL); uvmflag |= UVM_FLAG_FIXED; - uvm_unmap_p(map, *addr, *addr + size, p); /* zap! */ + uvm_unmap(map, *addr, *addr + size); /* zap! */ } /* |