use bufdone() not biodone().

This commit is contained in:
Poul-Henning Kamp 2004-08-08 13:23:05 +00:00
parent a8687125e5
commit 7ac439fec4
2 changed files with 6 additions and 6 deletions

View File

@ -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,

View File

@ -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);