Lines Matching refs:r1bio

59 static int check_and_add_serial(struct md_rdev *rdev, struct r1bio *r1_bio,
82 static void wait_for_serialization(struct md_rdev *rdev, struct r1bio *r1_bio)
122 * for resync bio, r1bio pointer can be retrieved from the per-bio
125 static inline struct r1bio *get_resync_r1bio(struct bio *bio)
133 int size = offsetof(struct r1bio, bios[pi->raid_disks]);
135 /* allocate a r1bio with room for raid_disks entries in the bios array */
149 struct r1bio *r1_bio;
222 struct r1bio *r1bio = __r1_bio;
226 rp = get_resync_pages(r1bio->bios[i]);
228 bio_put(r1bio->bios[i]);
234 rbio_pool_free(r1bio, data);
237 static void put_all_bios(struct r1conf *conf, struct r1bio *r1_bio)
249 static void free_r1bio(struct r1bio *r1_bio)
257 static void put_buf(struct r1bio *r1_bio)
274 static void reschedule_retry(struct r1bio *r1_bio)
296 static void call_bio_endio(struct r1bio *r1_bio)
306 static void raid_end_bio_io(struct r1bio *r1_bio)
332 static inline void update_head_pos(int disk, struct r1bio *r1_bio)
343 static int find_bio_disk(struct r1bio *r1_bio, struct bio *bio)
362 struct r1bio *r1_bio = bio->bi_private;
410 static void close_write(struct r1bio *r1_bio)
426 static void r1_bio_write_done(struct r1bio *r1_bio)
444 struct r1bio *r1_bio = bio->bi_private;
594 static int read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sectors)
1099 static void alloc_behind_master_bio(struct r1bio *r1_bio,
1178 static void init_r1bio(struct r1bio *r1_bio, struct mddev *mddev, struct bio *bio)
1187 static inline struct r1bio *
1191 struct r1bio *r1_bio;
1201 int max_read_sectors, struct r1bio *r1_bio)
1318 struct r1bio *r1_bio;
1368 * the bad blocks. Each set of writes gets it's own r1bio
1864 struct r1bio *r1_bio = get_resync_r1bio(bio);
1880 static void abort_sync_write(struct mddev *mddev, struct r1bio *r1_bio)
1894 static void put_sync_write_buf(struct r1bio *r1_bio, int uptodate)
1913 struct r1bio *r1_bio = get_resync_r1bio(bio);
1958 static int fix_sync_read_error(struct r1bio *r1_bio)
2090 static void process_checks(struct r1bio *r1_bio)
2177 static void sync_request_write(struct mddev *mddev, struct r1bio *r1_bio)
2326 static int narrow_write_error(struct r1bio *r1_bio, int i)
2396 static void handle_sync_write_finished(struct r1conf *conf, struct r1bio *r1_bio)
2419 static void handle_write_finished(struct r1conf *conf, struct r1bio *r1_bio)
2465 static void handle_read_error(struct r1conf *conf, struct r1bio *r1_bio)
2510 struct r1bio *r1_bio;
2527 r1_bio = list_first_entry(&tmp, struct r1bio,
2550 r1_bio = list_entry(head->prev, struct r1bio, retry_list);
2590 static struct r1bio *raid1_alloc_init_r1buf(struct r1conf *conf)
2592 struct r1bio *r1bio = mempool_alloc(&conf->r1buf_pool, GFP_NOIO);
2598 bio = r1bio->bios[i];
2603 r1bio->master_bio = NULL;
2604 return r1bio;
2621 struct r1bio *r1_bio;
3220 * Then resize conf->mirrors and swap in the new r1bio pool.