Retool the M_* flags to malloc() and the VM_ALLOC_* flags to
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 20 Jan 2004 05:04:08 +0000 (05:04 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 20 Jan 2004 05:04:08 +0000 (05:04 +0000)
commitdc1fd4b398b7503a996a4731760875731b96e5f9
tree5ea502d6c751d9a620d8ec2b06775c6f5549c409
parent5213f566bede9625482506ac9971af7a43ea4a88
Retool the M_* flags to malloc() and the VM_ALLOC_* flags to
vm_page_alloc(), and vm_page_grab() and friends.

The M_* flags now have more flexibility, with the intent that we will start
using some of it to deal with NULL pointer return problems in the codebase
(CAM is especially bad at dealing with unexpected return values).  In
particular, add M_USE_INTERRUPT_RESERVE and M_FAILSAFE, and redefine
M_NOWAIT as a combination of M_ flags instead of its own flag.

The VM_ALLOC_* macros are now flags (0x01, 0x01, 0x04) rather then states
(1, 2, 3), which allows us to create combinations that the old interface
could not handle.
18 files changed:
sys/dev/agp/agp.c
sys/dev/agp/agp_i810.c
sys/i386/i386/pmap.c
sys/kern/kern_conf.c
sys/kern/kern_mpipe.c
sys/kern/kern_slaballoc.c
sys/kern/kern_varsym.c
sys/kern/vfs_bio.c
sys/platform/pc32/i386/pmap.c
sys/sys/malloc.h
sys/vfs/nwfs/nwfs_vfsops.c
sys/vfs/smbfs/smbfs_vfsops.c
sys/vm/vm_fault.c
sys/vm/vm_kern.c
sys/vm/vm_map.c
sys/vm/vm_page.c
sys/vm/vm_page.h
sys/vm/vm_zone.c