Lines Matching defs:bio

1032 	struct bio *bio;
1034 while ((bio = bio_list_pop(tmp)))
1035 submit_bio_noacct(bio);
1135 raid5_end_read_request(struct bio *bi);
1137 raid5_end_write_request(struct bio *bi);
1159 struct bio *bi, *rbi;
1384 async_copy_data(int frombio, struct bio *bio, struct page **page,
1396 if (bio->bi_iter.bi_sector >= sector)
1397 page_offset = (signed)(bio->bi_iter.bi_sector - sector) * 512;
1399 page_offset = (signed)(sector - bio->bi_iter.bi_sector) * -512;
1405 bio_for_each_segment(bvl, bio, iter) {
1467 struct bio *rbi, *rbi2;
1500 struct bio *rbi;
1946 struct bio *chosen;
1950 struct bio *wbi;
2756 static void raid5_end_read_request(struct bio * bi)
2884 static void raid5_end_write_request(struct bio *bi)
3487 static bool stripe_bio_overlaps(struct stripe_head *sh, struct bio *bi,
3491 struct bio **bip;
3547 static void __add_stripe_bio(struct stripe_head *sh, struct bio *bi,
3551 struct bio **bip;
3625 static bool add_stripe_bio(struct stripe_head *sh, struct bio *bi,
3666 struct bio *bi;
3704 struct bio *nextbi = r5_next_bio(conf, bi, sh->dev[i].sector);
3725 struct bio *bi2 = r5_next_bio(conf, bi, sh->dev[i].sector);
3749 struct bio *nextbi =
4089 struct bio *wbi, *wbi2;
4142 * SCSI discard will change some bio fields and the stripe has
5420 static int in_chunk_boundary(struct mddev *mddev, struct bio *bio)
5423 sector_t sector = bio->bi_iter.bi_sector;
5425 unsigned int bio_sectors = bio_sectors(bio);
5433 * add bio to the retry LIFO ( in O(1) ... we are in interrupt )
5436 static void add_bio_to_retry(struct bio *bi,struct r5conf *conf)
5449 static struct bio *remove_bio_from_retry(struct r5conf *conf,
5452 struct bio *bi;
5472 * did, call bio_endio on the original bio (having bio_put the new bio
5476 static void raid5_align_endio(struct bio *bi)
5478 struct bio *raid_bi = bi->bi_private;
5500 static int raid5_read_one_chunk(struct mddev *mddev, struct bio *raid_bio)
5503 struct bio *align_bio;
5585 static struct bio *chunk_aligned_read(struct mddev *mddev, struct bio *raid_bio)
5587 struct bio *split;
5782 static void make_discard_request(struct mddev *mddev, struct bio *bi)
5916 struct bio *bi, int forwrite, int previous)
5978 sector_t logical_sector, struct bio *bi)
6100 * If the bio covers multiple data disks, find sector within the bio that has
6104 struct bio *bi)
6131 static bool raid5_make_request(struct mddev *mddev, struct bio * bi)
6627 static int retry_aligned_read(struct r5conf *conf, struct bio *raid_bio,
6630 /* We may not be able to submit a whole bio at once as there
6806 struct bio *bio;
6826 while ((bio = remove_bio_from_retry(conf, &offset))) {
6829 ok = retry_aligned_read(conf, bio, offset);
7703 max_disks * ((sizeof(struct bio) + PAGE_SIZE))) / 1024;