Remove buf->b_saveaddr, assert that vmapbuf() is only called on pbuf's. Pass
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 30 Apr 2006 20:23:26 +0000 (20:23 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 30 Apr 2006 20:23:26 +0000 (20:23 +0000)
commit3591bbc6b6cd7b17c8e9173a262ef5695e8a59ec
treebd8446128ef8bdfdd2acb1aa4010c66127a8d285
parent312dcd01e39b41c5e63bb9e2082a3531a1ac693b
Remove buf->b_saveaddr, assert that vmapbuf() is only called on pbuf's.  Pass
the user pointer and length to vmapbuf() rather then having it try to pull
the information out of the buffer.  vmapbuf() is now responsible for setting
b_data, b_bufsize, and b_bcount.

Also fix a bug in cam_periph_mapmem().  The procedure was failing to unmap
earlier vmapped bufs if later vmapbuf() calls in the loop failed.
sys/bus/cam/cam_periph.c
sys/bus/cam/cam_periph.h
sys/dev/raid/vinum/.gdbinit.kernel
sys/dev/raid/vinum/vinumio.c
sys/i386/i386/vm_machdep.c
sys/kern/kern_physio.c
sys/kern/vfs_aio.c
sys/kern/vfs_bio.c
sys/platform/pc32/i386/vm_machdep.c
sys/sys/buf.h
sys/vfs/ufs/ffs_rawread.c