diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-05-06 18:57:08 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-05-06 18:57:08 +0000 |
| commit | 18ee6cea78ac0da9e19d19cb67a68f0ff382ed21 (patch) | |
| tree | 98f0bcfcfd8b47c9ae006ab2d8a950c28e93783f | |
| parent | 6bd2ea83ef4b6e49ebf415ff53455f7aca7cee34 (diff) | |
Notes
| -rw-r--r-- | sys/sys/bio.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h index 404bae16f705..4e01e1e374a0 100644 --- a/sys/sys/bio.h +++ b/sys/sys/bio.h @@ -103,6 +103,16 @@ biodone(struct bio *bp) bp->bio_done(bp); } +static __inline__ void +bioerror(struct bio *bp, int error, int complete) +{ + if (complete) + bp->bio_resid = bp->bio_bcount; + bp->bio_error = error; + bp->bio_flags |= BIO_ERROR; + biodone(bp); +} + struct bio_queue_head { TAILQ_HEAD(bio_queue, bio) queue; daddr_t last_pblkno; |
