Replace the the buffer cache's B_READ, B_WRITE, B_FORMAT, and B_FREEBUF
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 30 Apr 2006 17:22:18 +0000 (17:22 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 30 Apr 2006 17:22:18 +0000 (17:22 +0000)
commit10f3fee58821ab59bbaf8753b17cfb8c679b31bf
tree73523bb88a030e623153d470b5722a8911bba9d0
parent3640ff5628758bc8bad110614179de03f8d313cc
Replace the the buffer cache's B_READ, B_WRITE, B_FORMAT, and B_FREEBUF
b_flags with a separate b_cmd field.  Use b_cmd to test for I/O completion
as well (getting rid of B_DONE in the process).  This further simplifies
the setup required to issue a buffer cache I/O.

Remove a redundant header file, bus/isa/i386/isa_dma.h and merge any
discrepancies into bus/isa/isavar.h.

Give ISADMA_READ/WRITE/RAW their own independant flag definitions instead of
trying to overload them on top of B_READ, B_WRITE, and B_RAW.  Add a
routine isa_dmabp() which takes a struct buf pointer and returns the ISA
dma flags associated with the operation.

Remove the 'clear_modify' argument to vfs_busy_pages().  Instead,
vfs_busy_pages() asserts that the buffer's b_cmd is valid and then uses
it to determine the action it must take.
87 files changed:
sys/amd64/amd64/genassym.c
sys/bus/cam/cam_periph.c
sys/bus/cam/scsi/scsi_cd.c
sys/bus/cam/scsi/scsi_da.c
sys/bus/cam/scsi/scsi_pt.c
sys/bus/cam/scsi/scsi_sa.c
sys/bus/firewire/fwmem.c
sys/bus/isa/i386/isa_device.h
sys/bus/isa/i386/isa_dma.c
sys/bus/isa/i386/isa_dma.h [deleted file]
sys/bus/isa/isavar.h
sys/contrib/dev/fla/fla.c
sys/dev/disk/ata/ata-disk.c
sys/dev/disk/ata/ata-raid.c
sys/dev/disk/ata/atapi-cd.c
sys/dev/disk/ata/atapi-fd.c
sys/dev/disk/ata/atapi-tape.c
sys/dev/disk/ccd/ccd.c
sys/dev/disk/fd/fd.c
sys/dev/disk/mcd/mcd.c
sys/dev/disk/md/md.c
sys/dev/disk/scd/scd.c
sys/dev/disk/vn/vn.c
sys/dev/disk/wt/wt.c
sys/dev/misc/labpc/labpc.c
sys/dev/misc/ppc/ppc.c
sys/dev/raid/aac/aac.c
sys/dev/raid/aac/aac_compat.h
sys/dev/raid/amr/amr.c
sys/dev/raid/ida/ida.c
sys/dev/raid/ida/ida_disk.c
sys/dev/raid/ips/ips.h
sys/dev/raid/mlx/mlx.c
sys/dev/raid/mlx/mlx_compat.h
sys/dev/raid/pst/pst-raid.c
sys/dev/raid/twe/twe.c
sys/dev/raid/twe/twe_compat.h
sys/dev/raid/vinum/vinumdaemon.c
sys/dev/raid/vinum/vinumext.h
sys/dev/raid/vinum/vinuminterrupt.c
sys/dev/raid/vinum/vinumio.c
sys/dev/raid/vinum/vinumparser.c
sys/dev/raid/vinum/vinumraid5.c
sys/dev/raid/vinum/vinumrequest.c
sys/dev/raid/vinum/vinumrevive.c
sys/dev/raid/vinum/vinumstate.c
sys/dev/sound/pcm/buffer.c
sys/dev/sound/pcm/sound.h
sys/dev/video/gsc/gsc.c
sys/i386/i386/genassym.c
sys/i386/i386/machdep.c
sys/i386/isa/asc.c
sys/kern/kern_device.c
sys/kern/kern_physio.c
sys/kern/subr_devstat.c
sys/kern/subr_disk.c
sys/kern/subr_diskmbr.c
sys/kern/subr_diskslice.c
sys/kern/vfs_aio.c
sys/kern/vfs_bio.c
sys/kern/vfs_cluster.c
sys/kern/vfs_default.c
sys/kern/vfs_vopops.c
sys/platform/pc32/i386/genassym.c
sys/platform/pc32/i386/machdep.c
sys/platform/pc32/isa/asc.c
sys/platform/vkernel/i386/genassym.c
sys/sys/buf.h
sys/vfs/gnu/ext2fs/ext2_bmap.c
sys/vfs/gnu/ext2fs/ext2_inode.c
sys/vfs/mfs/mfs_vnops.c
sys/vfs/nfs/nfs_bio.c
sys/vfs/nfs/nfs_vnops.c
sys/vfs/ntfs/ntfs_vnops.c
sys/vfs/nwfs/nwfs_io.c
sys/vfs/smbfs/smbfs_io.c
sys/vfs/specfs/spec_vnops.c
sys/vfs/ufs/ffs_alloc.c
sys/vfs/ufs/ffs_inode.c
sys/vfs/ufs/ffs_rawread.c
sys/vfs/ufs/ffs_softdep.c
sys/vfs/ufs/ufs_bmap.c
sys/vfs/union/union_vnops.c
sys/vm/swap_pager.c
sys/vm/vm_pager.c
sys/vm/vm_swap.c
sys/vm/vnode_pager.c