Get rid of pbgetvp() and pbrelvp(). Instead fold the B_PAGING flag directly
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 28 Apr 2006 16:34:02 +0000 (16:34 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 28 Apr 2006 16:34:02 +0000 (16:34 +0000)
commita8f169e23a89d6f2ef1249aef8031ba4b9f9d602
treef657c5198122334bb6073abfb3673a09c53e2cba
parent2dc6c129b0416a1a11f9449ba162d5e67ae52357
Get rid of pbgetvp() and pbrelvp().  Instead fold the B_PAGING flag directly
into getpbuf() (the only type of buffer that pbgetvp() could be called on
anyway).  Change related b_flags assignments from '=' to '|='.

Get rid of remaining depdendancies on b_vp.  vn_strategy() now relies solely
on the vp passed to it as an argument.  Remove buffer cache code that sets
b_vp for anonymous pbuf's.

Add a stopgap 'vp' argument to vfs_busy_pages().  This is only really needed
by NFS and the clustering code do to the severely hackish nature of the
NFS and clustering code.

Fix a bug in the ext2fs inode code where vfs_busy_pages() was being called
on B_CACHE buffers.  Add an assertion to vfs_busy_pages() to panic if it
encounters a B_CACHE buffer.
26 files changed:
sys/bus/cam/cam_periph.c
sys/dev/disk/ata/ata-raid.c
sys/dev/disk/ccd/ccd.c
sys/dev/disk/fd/fd.c
sys/dev/raid/vinum/vinumio.c
sys/dev/raid/vinum/vinumrequest.c
sys/dev/raid/vinum/vinumrevive.c
sys/kern/kern_physio.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_subr.c
sys/sys/buf.h
sys/vfs/gnu/ext2fs/ext2_bmap.c
sys/vfs/gnu/ext2fs/ext2_inode.c
sys/vfs/nfs/nfs_bio.c
sys/vfs/nfs/nfs_vnops.c
sys/vfs/specfs/spec_vnops.c
sys/vfs/ufs/ffs_inode.c
sys/vfs/ufs/ffs_rawread.c
sys/vfs/ufs/ufs_bmap.c
sys/vm/swap_pager.c
sys/vm/vm_pager.c
sys/vm/vnode_pager.c