From aaaef0b54e307450b19dcd1fb6ec921cc62d1acf Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 15 Apr 2000 05:54:02 +0000 Subject: Complete the bio/buf divorce for all code below devfs::strategy Exceptions: Vinum untouched. This means that it cannot be compiled. Greg Lehey is on the case. CCD not converted yet, casts to struct buf (still safe) atapi-cd casts to struct buf to examine B_PHYS --- sys/miscfs/devfs/devfs_vnops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/miscfs/devfs') diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c index 5af57ae..3ec62f8 100644 --- a/sys/miscfs/devfs/devfs_vnops.c +++ b/sys/miscfs/devfs/devfs_vnops.c @@ -1551,7 +1551,7 @@ devfs_inactive(struct vop_inactive_args *ap) * Just call the device strategy routine struct vop_strategy_args { struct vnode *a_vp; - struct buf *a_bp; + struct bio *a_bp; } */ static int @@ -1574,10 +1574,10 @@ devfs_strategy(struct vop_strategy_args *ap) (*bioops.io_start)(bp); switch (vp->v_type) { case VCHR: - (*vp->v_rdev->si_devsw->d_strategy)(bp); + (*vp->v_rdev->si_devsw->d_strategy)(&bp->b_io); break; case VBLK: - (*vp->v_rdev->si_devsw->d_strategy)(bp); + (*vp->v_rdev->si_devsw->d_strategy)(&bp->b_io); break; default: /* XXX set error code? */ -- cgit v1.1