From: | Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx> |
Date: | Thu, 28 Dec 2006 13:24:02 -0800 (PST) |
dillon 2006/12/28 13:24:02 PST DragonFly src repository Modified files: 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/kern imgact_elf.c imgact_gzip.c init_main.c kern_exec.c kern_msfbuf.c kern_sfbuf.c kern_slaballoc.c link_elf.c lwkt_thread.c sys_pipe.c sys_process.c vfs_bio.c sys/ddb db_aout.c db_break.c sys/machine/pc32/i386 machdep.c mp_machdep.c pmap.c sys_machdep.c trap.c vm_machdep.c sys/emulation/linux linux_misc.c sys/emulation/linux/i386 imgact_linux.c sys/vfs/procfs procfs_mem.c sys/vm vm_contig.c vm_extern.h vm_fault.c vm_glue.c vm_kern.c vm_kern.h vm_map.c vm_map.h vm_object.c vm_pager.c vm_pager.h vm_zone.c Log: 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. Revision Changes Path 1.12 +3 -3 src/sys/dev/netif/pdq_layer/pdqvar.h 1.14 +2 -2 src/sys/dev/raid/dpt/dpt_control.c 1.21 +1 -1 src/sys/dev/video/bktr/bktr_core.c 1.17 +1 -1 src/sys/dev/video/i386/vesa/vesa.c 1.21 +4 -3 src/sys/dev/video/meteor/meteor.c 1.46 +2 -2 src/sys/kern/imgact_elf.c 1.9 +5 -6 src/sys/kern/imgact_gzip.c 1.70 +4 -3 src/sys/kern/init_main.c 1.52 +2 -2 src/sys/kern/kern_exec.c 1.19 +2 -2 src/sys/kern/kern_msfbuf.c 1.14 +1 -1 src/sys/kern/kern_sfbuf.c 1.46 +22 -22 src/sys/kern/kern_slaballoc.c 1.25 +9 -9 src/sys/kern/link_elf.c 1.105 +3 -3 src/sys/kern/lwkt_thread.c 1.44 +7 -7 src/sys/kern/sys_pipe.c 1.26 +6 -6 src/sys/kern/sys_process.c 1.85 +14 -14 src/sys/kern/vfs_bio.c 1.8 +1 -1 src/sys/ddb/db_aout.c 1.7 +4 -4 src/sys/ddb/db_break.c 1.108 +16 -18 src/sys/machine/pc32/i386/machdep.c 1.55 +4 -4 src/sys/machine/pc32/i386/mp_machdep.c 1.66 +5 -5 src/sys/machine/pc32/i386/pmap.c 1.29 +12 -12 src/sys/machine/pc32/i386/sys_machdep.c 1.89 +3 -3 src/sys/machine/pc32/i386/trap.c 1.50 +1 -1 src/sys/machine/pc32/i386/vm_machdep.c 1.33 +4 -4 src/sys/emulation/linux/linux_misc.c 1.10 +2 -2 src/sys/emulation/linux/i386/imgact_linux.c 1.12 +2 -2 src/sys/vfs/procfs/procfs_mem.c 1.21 +10 -7 src/sys/vm/vm_contig.c 1.21 +1 -1 src/sys/vm/vm_extern.h 1.33 +1 -1 src/sys/vm/vm_fault.c 1.47 +4 -4 src/sys/vm/vm_glue.c 1.26 +37 -37 src/sys/vm/vm_kern.c 1.11 +4 -4 src/sys/vm/vm_kern.h 1.54 +8 -9 src/sys/vm/vm_map.c 1.28 +2 -2 src/sys/vm/vm_map.h 1.29 +4 -4 src/sys/vm/vm_object.c 1.23 +3 -2 src/sys/vm/vm_pager.c 1.9 +1 -1 src/sys/vm/vm_pager.h 1.23 +3 -3 src/sys/vm/vm_zone.c http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/pdq_layer/pdqvar.h.diff?r1=1.11&r2=1.12&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/raid/dpt/dpt_control.c.diff?r1=1.13&r2=1.14&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/video/bktr/bktr_core.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/video/i386/vesa/vesa.c.diff?r1=1.16&r2=1.17&f=u http://www.dragonflybsd.org/cvsweb/src/sys/dev/video/meteor/meteor.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/imgact_elf.c.diff?r1=1.45&r2=1.46&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/imgact_gzip.c.diff?r1=1.8&r2=1.9&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/init_main.c.diff?r1=1.69&r2=1.70&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_exec.c.diff?r1=1.51&r2=1.52&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_msfbuf.c.diff?r1=1.18&r2=1.19&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_sfbuf.c.diff?r1=1.13&r2=1.14&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_slaballoc.c.diff?r1=1.45&r2=1.46&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/link_elf.c.diff?r1=1.24&r2=1.25&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/lwkt_thread.c.diff?r1=1.104&r2=1.105&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/sys_pipe.c.diff?r1=1.43&r2=1.44&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/sys_process.c.diff?r1=1.25&r2=1.26&f=u http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_bio.c.diff?r1=1.84&r2=1.85&f=u http://www.dragonflybsd.org/cvsweb/src/sys/ddb/db_aout.c.diff?r1=1.7&r2=1.8&f=u http://www.dragonflybsd.org/cvsweb/src/sys/ddb/db_break.c.diff?r1=1.6&r2=1.7&f=u http://www.dragonflybsd.org/cvsweb/src/sys/machine/pc32/i386/machdep.c.diff?r1=1.107&r2=1.108&f=u http://www.dragonflybsd.org/cvsweb/src/sys/machine/pc32/i386/mp_machdep.c.diff?r1=1.54&r2=1.55&f=u http://www.dragonflybsd.org/cvsweb/src/sys/machine/pc32/i386/pmap.c.diff?r1=1.65&r2=1.66&f=u http://www.dragonflybsd.org/cvsweb/src/sys/machine/pc32/i386/sys_machdep.c.diff?r1=1.28&r2=1.29&f=u http://www.dragonflybsd.org/cvsweb/src/sys/machine/pc32/i386/trap.c.diff?r1=1.88&r2=1.89&f=u http://www.dragonflybsd.org/cvsweb/src/sys/machine/pc32/i386/vm_machdep.c.diff?r1=1.49&r2=1.50&f=u http://www.dragonflybsd.org/cvsweb/src/sys/emulation/linux/linux_misc.c.diff?r1=1.32&r2=1.33&f=u http://www.dragonflybsd.org/cvsweb/src/sys/emulation/linux/i386/imgact_linux.c.diff?r1=1.9&r2=1.10&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vfs/procfs/procfs_mem.c.diff?r1=1.11&r2=1.12&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_contig.c.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_extern.h.diff?r1=1.20&r2=1.21&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_fault.c.diff?r1=1.32&r2=1.33&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_glue.c.diff?r1=1.46&r2=1.47&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_kern.c.diff?r1=1.25&r2=1.26&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_kern.h.diff?r1=1.10&r2=1.11&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_map.c.diff?r1=1.53&r2=1.54&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_map.h.diff?r1=1.27&r2=1.28&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_object.c.diff?r1=1.28&r2=1.29&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_pager.c.diff?r1=1.22&r2=1.23&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_pager.h.diff?r1=1.8&r2=1.9&f=u http://www.dragonflybsd.org/cvsweb/src/sys/vm/vm_zone.c.diff?r1=1.22&r2=1.23&f=u