diff options
author | dyson <dyson@FreeBSD.org> | 1996-05-23 00:45:58 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-05-23 00:45:58 +0000 |
commit | 509f02d4a3034d089f3b708293f367e91cdc784b (patch) | |
tree | 93cb5552524c0e6c7df6625358d83c0aaf76b71e /sys/vm/vm_map.c | |
parent | c8d511854a4e1ec4a0e64833ef0f7e2f67d521d5 (diff) | |
download | FreeBSD-src-509f02d4a3034d089f3b708293f367e91cdc784b.zip FreeBSD-src-509f02d4a3034d089f3b708293f367e91cdc784b.tar.gz |
Initial support for MADV_FREE, support for pages that we don't care
about the contents anymore. This gives us alot of the advantage of
freeing individual pages through munmap, but with almost none of the
overhead.
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r-- | sys/vm/vm_map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 89f4e87..f0339e8 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_map.c,v 1.45 1996/05/18 03:37:43 dyson Exp $ + * $Id: vm_map.c,v 1.46 1996/05/19 07:36:46 dyson Exp $ */ /* @@ -1225,6 +1225,7 @@ vm_map_madvise(map, pmap, start, end, advise) * Right now, we could handle DONTNEED and WILLNEED with common code. * They are mostly the same, except for the potential async reads (NYI). */ + case MADV_FREE: case MADV_DONTNEED: { vm_pindex_t pindex; |