From db95f8ec861f9d4d9381e20d36f169c7fc1ada68 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 8 Aug 2004 13:23:05 +0000 Subject: [PATCH] use bufdone() not biodone(). --- sys/fs/specfs/spec_vnops.c | 6 +++--- sys/ufs/ffs/ffs_softdep.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index ec58af649ac8..85f4c4882dbb 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -495,9 +495,9 @@ spec_xstrategy(struct vnode *vp, struct buf *bp) } dsw = devsw(bp->b_dev); if (dsw == NULL) { - bp->b_io.bio_error = ENXIO; - bp->b_io.bio_flags |= BIO_ERROR; - biodone(&bp->b_io); + bp->b_error = ENXIO; + bp->b_ioflags |= BIO_ERROR; + bufdone(bp); return (0); } KASSERT(dsw->d_strategy != NULL, diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index 0a8b49f2bc1c..435e32d3a713 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -3436,9 +3436,9 @@ softdep_disk_prewrite(struct vnode *vp, struct buf *bp) vp->v_rdev->si_copyonwrite && (error = (*vp->v_rdev->si_copyonwrite)(vp, bp)) != 0 && error != EOPNOTSUPP) { - bp->b_io.bio_error = error; - bp->b_io.bio_flags |= BIO_ERROR; - biodone(&bp->b_io); + bp->b_error = error; + bp->b_ioflags |= BIO_ERROR; + bufdone(bp); return (1); } return (0);