summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/devfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-04-15 05:54:02 +0000
committerphk <phk@FreeBSD.org>2000-04-15 05:54:02 +0000
commitaaaef0b54e307450b19dcd1fb6ec921cc62d1acf (patch)
tree175dac1aaf0d06b54deb889161091dbcf88c79c6 /sys/miscfs/devfs
parentf2310ef109eccf99c872f4f90eb70f4fc26e39f1 (diff)
downloadFreeBSD-src-aaaef0b54e307450b19dcd1fb6ec921cc62d1acf.zip
FreeBSD-src-aaaef0b54e307450b19dcd1fb6ec921cc62d1acf.tar.gz
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
Diffstat (limited to 'sys/miscfs/devfs')
-rw-r--r--sys/miscfs/devfs/devfs_vnops.c6
1 files changed, 3 insertions, 3 deletions
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? */
OpenPOWER on IntegriCloud