Lines Matching refs:r1bio
90 static inline struct r1bio *get_resync_r1bio(struct bio *bio) in get_resync_r1bio()
98 int size = offsetof(struct r1bio, bios[pi->raid_disks]); in r1bio_pool_alloc()
119 struct r1bio *r1_bio; in r1buf_pool_alloc()
192 struct r1bio *r1bio = __r1_bio; in r1buf_pool_free() local
196 rp = get_resync_pages(r1bio->bios[i]); in r1buf_pool_free()
198 bio_put(r1bio->bios[i]); in r1buf_pool_free()
204 r1bio_pool_free(r1bio, data); in r1buf_pool_free()
207 static void put_all_bios(struct r1conf *conf, struct r1bio *r1_bio) in put_all_bios()
219 static void free_r1bio(struct r1bio *r1_bio) in free_r1bio()
227 static void put_buf(struct r1bio *r1_bio) in put_buf()
244 static void reschedule_retry(struct r1bio *r1_bio) in reschedule_retry()
266 static void call_bio_endio(struct r1bio *r1_bio) in call_bio_endio()
282 static void raid_end_bio_io(struct r1bio *r1_bio) in raid_end_bio_io()
301 static inline void update_head_pos(int disk, struct r1bio *r1_bio) in update_head_pos()
312 static int find_bio_disk(struct r1bio *r1_bio, struct bio *bio) in find_bio_disk()
331 struct r1bio *r1_bio = bio->bi_private; in raid1_end_read_request()
379 static void close_write(struct r1bio *r1_bio) in close_write()
395 static void r1_bio_write_done(struct r1bio *r1_bio) in r1_bio_write_done()
413 struct r1bio *r1_bio = bio->bi_private; in raid1_end_write_request()
556 static int read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sectors) in read_balance()
1087 static void alloc_behind_master_bio(struct r1bio *r1_bio, in alloc_behind_master_bio()
1166 static void init_r1bio(struct r1bio *r1_bio, struct mddev *mddev, struct bio *bio) in init_r1bio()
1175 static inline struct r1bio *
1179 struct r1bio *r1_bio; in alloc_r1bio()
1189 int max_read_sectors, struct r1bio *r1_bio) in raid1_read_request()
1306 struct r1bio *r1_bio; in raid1_write_request()
1849 struct r1bio *r1_bio = get_resync_r1bio(bio); in end_sync_read()
1868 struct r1bio *r1_bio = get_resync_r1bio(bio); in end_sync_write()
1930 static int fix_sync_read_error(struct r1bio *r1_bio) in fix_sync_read_error()
2062 static void process_checks(struct r1bio *r1_bio) in process_checks()
2148 static void sync_request_write(struct mddev *mddev, struct r1bio *r1_bio) in sync_request_write()
2305 static int narrow_write_error(struct r1bio *r1_bio, int i) in narrow_write_error()
2375 static void handle_sync_write_finished(struct r1conf *conf, struct r1bio *r1_bio) in handle_sync_write_finished()
2398 static void handle_write_finished(struct r1conf *conf, struct r1bio *r1_bio) in handle_write_finished()
2444 static void handle_read_error(struct r1conf *conf, struct r1bio *r1_bio) in handle_read_error()
2489 struct r1bio *r1_bio; in raid1d()
2506 r1_bio = list_first_entry(&tmp, struct r1bio, in raid1d()
2529 r1_bio = list_entry(head->prev, struct r1bio, retry_list); in raid1d()
2569 static struct r1bio *raid1_alloc_init_r1buf(struct r1conf *conf) in raid1_alloc_init_r1buf()
2571 struct r1bio *r1bio = mempool_alloc(&conf->r1buf_pool, GFP_NOIO); in raid1_alloc_init_r1buf() local
2577 bio = r1bio->bios[i]; in raid1_alloc_init_r1buf()
2582 r1bio->master_bio = NULL; in raid1_alloc_init_r1buf()
2583 return r1bio; in raid1_alloc_init_r1buf()
2600 struct r1bio *r1_bio; in raid1_sync_request()