Lines Matching defs:bp
208 g_raid_tr_iostart_concat(struct g_raid_tr_object *tr, struct bio *bp)
221 g_raid_iodone(bp, EIO);
224 if (bp->bio_cmd == BIO_FLUSH) {
225 g_raid_tr_flush_common(tr, bp);
229 offset = bp->bio_offset;
230 remain = bp->bio_length;
231 if ((bp->bio_flags & BIO_UNMAPPED) != 0)
234 addr = bp->bio_data;
242 ("Request starts after volume end (%ju)", bp->bio_offset));
247 cbp = g_clone_bio(bp);
252 if ((bp->bio_flags & BIO_UNMAPPED) != 0 &&
253 bp->bio_cmd != BIO_DELETE) {
264 if (bp->bio_cmd != BIO_DELETE)
270 bp->bio_offset, bp->bio_length));
281 if (bp->bio_error == 0)
282 bp->bio_error = ENOMEM;
283 g_raid_iodone(bp, bp->bio_error);
331 struct g_raid_subdisk *sd,struct bio *bp)
335 pbp = bp->bio_parent;
337 pbp->bio_error = bp->bio_error;
338 g_destroy_bio(bp);