Lines Matching refs:r10bio
73 static void reshape_request_write(struct mddev *mddev, struct r10bio *r10_bio);
83 * for resync bio, r10bio pointer can be retrieved from the per-bio
86 static inline struct r10bio *get_resync_r10bio(struct bio *bio)
94 int size = offsetof(struct r10bio, devs[conf->copies]);
96 /* allocate a r10bio with room for raid_disks entries in the
119 struct r10bio *r10_bio;
213 struct r10bio *r10bio = __r10_bio;
218 struct bio *bio = r10bio->devs[j].bio;
226 bio = r10bio->devs[j].repl_bio;
234 rbio_pool_free(r10bio, conf);
237 static void put_all_bios(struct r10conf *conf, struct r10bio *r10_bio)
253 static void free_r10bio(struct r10bio *r10_bio)
261 static void put_buf(struct r10bio *r10_bio)
270 static void reschedule_retry(struct r10bio *r10_bio)
292 static void raid_end_bio_io(struct r10bio *r10_bio)
313 static inline void update_head_pos(int slot, struct r10bio *r10_bio)
324 static int find_bio_disk(struct r10conf *conf, struct r10bio *r10_bio,
352 struct r10bio *r10_bio = bio->bi_private;
402 static void close_write(struct r10bio *r10_bio)
412 static void one_write_done(struct r10bio *r10_bio)
429 struct r10bio *r10_bio = bio->bi_private;
561 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio)
578 chunk = r10bio->sector >> geo->chunk_shift;
579 sector = r10bio->sector & geo->chunk_mask;
594 r10bio->devs[slot].devnum = d;
595 r10bio->devs[slot].addr = s;
612 r10bio->devs[slot].devnum = d;
613 r10bio->devs[slot].addr = s;
624 static void raid10_find_phys(struct r10conf *conf, struct r10bio *r10bio)
629 ((r10bio->sector >= conf->reshape_progress) !=
631 set_bit(R10BIO_Previous, &r10bio->state);
634 clear_bit(R10BIO_Previous, &r10bio->state);
636 __raid10_find_phys(geo, r10bio);
704 struct r10bio *r10_bio,
1045 static sector_t choose_data_offset(struct r10bio *r10_bio,
1128 struct r10bio *r10_bio)
1221 static void raid10_write_one_disk(struct mddev *mddev, struct r10bio *r10_bio,
1290 struct r10bio *r10_bio)
1502 struct r10bio *r10_bio;
1886 static void __end_sync_read(struct r10bio *r10_bio, struct bio *bio, int d)
1914 struct r10bio *r10_bio = get_resync_r10bio(bio);
1924 struct r10bio *r10_bio = bio->bi_private;
1929 static void end_sync_request(struct r10bio *r10_bio)
1945 struct r10bio *r10_bio2 = (struct r10bio *)r10_bio->master_bio;
1958 struct r10bio *r10_bio = get_resync_r10bio(bio);
2011 static void sync_request_write(struct mddev *mddev, struct r10bio *r10_bio)
2144 static void fix_recovery_read_error(struct r10bio *r10_bio)
2227 static void recovery_request_write(struct mddev *mddev, struct r10bio *r10_bio)
2336 static void fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10bio *r10_bio)
2521 static int narrow_write_error(struct r10bio *r10_bio, int i)
2582 static void handle_read_error(struct mddev *mddev, struct r10bio *r10_bio)
2616 static void handle_write_completed(struct r10conf *conf, struct r10bio *r10_bio)
2720 struct r10bio *r10_bio;
2740 r10_bio = list_first_entry(&tmp, struct r10bio,
2763 r10_bio = list_entry(head->prev, struct r10bio, retry_list);
2809 static struct r10bio *raid10_alloc_init_r10buf(struct r10conf *conf)
2811 struct r10bio *r10bio = mempool_alloc(&conf->r10buf_pool, GFP_NOIO);
2824 bio = r10bio->devs[i].bio;
2828 bio = r10bio->devs[i].repl_bio;
2835 return r10bio;
2911 struct r10bio *r10_bio;
3029 * Both must result in an r10bio with a list of bios that
3031 * and bi_private set to the r10bio.
3051 struct r10bio *rb2;
3290 struct r10bio *rb2 = r10_bio;
3291 r10_bio = (struct r10bio*) rb2->master_bio;
4425 struct r10bio *r10_bio;
4666 static void end_reshape_request(struct r10bio *r10_bio);
4668 struct r10bio *r10_bio);
4669 static void reshape_request_write(struct mddev *mddev, struct r10bio *r10_bio)
4748 struct r10bio *r10_bio)
4753 struct r10bio *r10b;
4824 struct r10bio *r10_bio = get_resync_r10bio(bio);
4849 static void end_reshape_request(struct r10bio *r10_bio)