Make kernel_map, buffer_map, clean_map, exec_map, and pager_map direct
commit082ddabfcdf685447a84a57b70b9237c8d1be77c
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 28 Dec 2006 21:24:02 +0000 (28 21:24 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 28 Dec 2006 21:24:02 +0000 (28 21:24 +0000)
tree3a098699934a8ffd09b2391a8838c9072d0879a0
parenta7000e4f0417bc6676fe49f2a09715a26d23eb24
Make kernel_map, buffer_map, clean_map, exec_map, and pager_map direct
structural declarations instead of pointers.  Clean up all related code,
in particular kmem_suballoc().

Remove the offset calculation for kernel_object.  kernel_object's page
indices used to be relative to the start of kernel virtual memory in order
to improve the performance of VM page scanning algorithms.  The optimization
is no longer needed now that VM objects use Red-Black trees.  Removal of
the offset simplifies a number of calculations and makes the code more
readable.
40 files changed:
sys/ddb/db_aout.c
sys/ddb/db_break.c
sys/dev/netif/pdq_layer/pdqvar.h
sys/dev/raid/dpt/dpt_control.c
sys/dev/video/bktr/bktr_core.c
sys/dev/video/i386/vesa/vesa.c
sys/dev/video/meteor/meteor.c
sys/emulation/linux/i386/imgact_linux.c
sys/emulation/linux/linux_misc.c
sys/kern/imgact_elf.c
sys/kern/imgact_gzip.c
sys/kern/init_main.c
sys/kern/kern_exec.c
sys/kern/kern_msfbuf.c
sys/kern/kern_sfbuf.c
sys/kern/kern_slaballoc.c
sys/kern/link_elf.c
sys/kern/lwkt_thread.c
sys/kern/sys_pipe.c
sys/kern/sys_process.c
sys/kern/vfs_bio.c
sys/platform/pc32/i386/machdep.c
sys/platform/pc32/i386/mp_machdep.c
sys/platform/pc32/i386/pmap.c
sys/platform/pc32/i386/sys_machdep.c
sys/platform/pc32/i386/trap.c
sys/platform/pc32/i386/vm_machdep.c
sys/vfs/procfs/procfs_mem.c
sys/vm/vm_contig.c
sys/vm/vm_extern.h
sys/vm/vm_fault.c
sys/vm/vm_glue.c
sys/vm/vm_kern.c
sys/vm/vm_kern.h
sys/vm/vm_map.c
sys/vm/vm_map.h
sys/vm/vm_object.c
sys/vm/vm_pager.c
sys/vm/vm_pager.h
sys/vm/vm_zone.c