Make kernel_map, buffer_map, clean_map, exec_map, and pager_map direct
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 28 Dec 2006 21:24:02 +0000 (21:24 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 28 Dec 2006 21:24:02 +0000 (21:24 +0000)
commite4846942819ebf777de481efddc19fb1b0f669f2
tree9841f29a62e24d0fa25ede0112ce53655f88db7f
parentc439ad8fa8aef93099d495842caca886d855a359
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