| 4387 | } |
| 4388 | |
| 4389 | void |
| 4390 | biofinish(struct bio *bp, struct devstat *stat, int error) |
| 4391 | { |
| 4392 | |
| 4393 | if (error) { |
| 4394 | bp->bio_error = error; |
| 4395 | bp->bio_flags |= BIO_ERROR; |
| 4396 | } |
| 4397 | if (stat != NULL) |
| 4398 | devstat_end_transaction_bio(stat, bp); |
| 4399 | biodone(bp); |
| 4400 | } |
| 4401 | |
| 4402 | #if defined(BUF_TRACKING) || defined(FULL_BUF_TRACKING) |
| 4403 | void |
no test coverage detected