Lines Matching defs:bio
114 struct bio flush_bio;
215 struct bio *current_bio;/* current_bio accepting new data */
226 struct bio *split_bio;
244 IO_UNIT_IO_START = 1, /* io_unit bio start writing to log,
245 * don't accepting new bio */
246 IO_UNIT_IO_END = 2, /* io_unit bio finish writing to log */
294 struct bio *wbi, *wbi2;
558 static void r5l_log_endio(struct bio *bio)
560 struct r5l_io_unit *io = bio->bi_private;
567 if (bio->bi_status)
570 bio_put(bio);
607 struct bio *bi;
736 static struct bio *r5l_bio_alloc(struct r5l_log *log)
738 struct bio *bio = bio_alloc_bioset(GFP_NOIO, BIO_MAX_PAGES, &log->bs);
740 bio_set_op_attrs(bio, REQ_OP_WRITE, 0);
741 bio_set_dev(bio, log->rdev->bdev);
742 bio->bi_iter.bi_sector = log->rdev->data_offset + log->log_start;
744 return bio;
754 * which will require a new bio.
1099 int r5l_handle_flush_request(struct r5l_log *log, struct bio *bio)
1105 * raid disks. So if bio is finished, the log disk cache is
1107 * the bio from log disk, so we don't need to flush again
1109 if (bio->bi_iter.bi_size == 0) {
1110 bio_endio(bio);
1113 bio->bi_opf &= ~REQ_PREFLUSH;
1116 if (bio->bi_iter.bi_size == 0) {
1119 bio_list_add(&log->current_io->flush_barriers, bio);
1255 static void r5l_log_flush_endio(struct bio *bio)
1257 struct r5l_log *log = container_of(bio, struct r5l_log,
1262 if (bio->bi_status)
1294 /* flush bio is running */
1629 struct bio *ra_bio; /* bio to do the read ahead */