diff options
author | alc <alc@FreeBSD.org> | 2002-06-01 22:41:43 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-06-01 22:41:43 +0000 |
commit | 2abbbe7b8ae79822d494eacb2a9b49121b49dd80 (patch) | |
tree | 465b654ab56d40481dcfcc0a70962700baa25ef5 /sys/vm/vm_map.h | |
parent | f70773e9649efef1e0a3d1066233ee55c5ac6b21 (diff) | |
download | FreeBSD-src-2abbbe7b8ae79822d494eacb2a9b49121b49dd80.zip FreeBSD-src-2abbbe7b8ae79822d494eacb2a9b49121b49dd80.tar.gz |
o Remove GIANT_REQUIRED from vm_map_zfini(), vm_map_zinit(),
vm_map_create(), and vm_map_submap().
o Make further use of a local variable in vm_map_entry_splay()
that caches a reference to one of a vm_map_entry's children.
(This reduces code size somewhat.)
o Revert a part of revision 1.66, deinlining vmspace_pmap().
(This function is MPSAFE.)
Diffstat (limited to 'sys/vm/vm_map.h')
-rw-r--r-- | sys/vm/vm_map.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h index 02d3b47..b4c75e6 100644 --- a/sys/vm/vm_map.h +++ b/sys/vm/vm_map.h @@ -218,6 +218,14 @@ struct vmspace { }; #ifdef _KERNEL +static __inline pmap_t +vmspace_pmap(struct vmspace *vmspace) +{ + return &vmspace->vm_pmap; +} +#endif /* _KERNEL */ + +#ifdef _KERNEL /* * Macros: vm_map_lock, etc. * Function: @@ -252,7 +260,6 @@ void _vm_map_clear_recursive(vm_map_t map, const char *file, int line); #define vm_map_clear_recursive(map) \ _vm_map_clear_recursive(map, LOCK_FILE, LOCK_LINE) -struct pmap *vmspace_pmap(struct vmspace *vmspace); long vmspace_resident_count(struct vmspace *vmspace); #endif /* _KERNEL */ |