Lines Matching refs:bio_list
87 struct bio_list bio_list; member
324 bio_list_merge(&dest->bio_list, &victim->bio_list); in merge_rbio()
327 bio_list_init(&victim->bio_list); in merge_rbio()
375 if (bio_list_empty(&rbio->bio_list)) { in __remove_rbio_from_cache()
680 if (bio_list_empty(&cur->bio_list) && in lock_stripe_add()
770 BUG_ON(!bio_list_empty(&rbio->bio_list)); in unlock_stripe()
830 WARN_ON(!bio_list_empty(&rbio->bio_list)); in __free_raid_bio()
862 struct bio *cur = bio_list_get(&rbio->bio_list); in rbio_orig_end_io()
877 extra = bio_list_get(&rbio->bio_list); in rbio_orig_end_io()
983 bio_list_init(&rbio->bio_list); in alloc_rbio()
1068 struct bio_list *bio_list, in rbio_add_io_page() argument
1074 struct bio *last = bio_list->tail; in rbio_add_io_page()
1112 bio_list_add(bio_list, bio); in rbio_add_io_page()
1149 bio_list_for_each(bio, &rbio->bio_list) { in index_rbio_pages()
1185 struct bio_list bio_list; in finish_rmw() local
1189 bio_list_init(&bio_list); in finish_rmw()
1277 ret = rbio_add_io_page(rbio, &bio_list, in finish_rmw()
1301 ret = rbio_add_io_page(rbio, &bio_list, page, in finish_rmw()
1310 atomic_set(&rbio->stripes_pending, bio_list_size(&bio_list)); in finish_rmw()
1313 while ((bio = bio_list_pop(&bio_list))) { in finish_rmw()
1325 while ((bio = bio_list_pop(&bio_list))) in finish_rmw()
1479 struct bio_list bio_list; in raid56_rmw_stripe() local
1485 bio_list_init(&bio_list); in raid56_rmw_stripe()
1519 ret = rbio_add_io_page(rbio, &bio_list, page, in raid56_rmw_stripe()
1526 bios_to_read = bio_list_size(&bio_list); in raid56_rmw_stripe()
1542 while ((bio = bio_list_pop(&bio_list))) { in raid56_rmw_stripe()
1557 while ((bio = bio_list_pop(&bio_list))) in raid56_rmw_stripe()
1640 u64 a_sector = ra->bio_list.head->bi_iter.bi_sector; in plug_cmp()
1641 u64 b_sector = rb->bio_list.head->bi_iter.bi_sector; in plug_cmp()
1733 bio_list_add(&rbio->bio_list, bio); in raid56_parity_write()
2024 struct bio_list bio_list; in __raid56_parity_recover() local
2030 bio_list_init(&bio_list); in __raid56_parity_recover()
2060 ret = rbio_add_io_page(rbio, &bio_list, in __raid56_parity_recover()
2068 bios_to_read = bio_list_size(&bio_list); in __raid56_parity_recover()
2088 while ((bio = bio_list_pop(&bio_list))) { in __raid56_parity_recover()
2105 while ((bio = bio_list_pop(&bio_list))) in __raid56_parity_recover()
2137 bio_list_add(&rbio->bio_list, bio); in raid56_parity_recover()
2234 bio_list_add(&rbio->bio_list, bio); in raid56_parity_alloc_scrub_rbio()
2322 struct bio_list bio_list; in finish_parity_scrub() local
2327 bio_list_init(&bio_list); in finish_parity_scrub()
2422 ret = rbio_add_io_page(rbio, &bio_list, in finish_parity_scrub()
2435 ret = rbio_add_io_page(rbio, &bio_list, page, in finish_parity_scrub()
2443 nr_data = bio_list_size(&bio_list); in finish_parity_scrub()
2452 while ((bio = bio_list_pop(&bio_list))) { in finish_parity_scrub()
2464 while ((bio = bio_list_pop(&bio_list))) in finish_parity_scrub()
2569 struct bio_list bio_list; in raid56_parity_scrub_stripe() local
2575 bio_list_init(&bio_list); in raid56_parity_scrub_stripe()
2607 ret = rbio_add_io_page(rbio, &bio_list, page, in raid56_parity_scrub_stripe()
2614 bios_to_read = bio_list_size(&bio_list); in raid56_parity_scrub_stripe()
2630 while ((bio = bio_list_pop(&bio_list))) { in raid56_parity_scrub_stripe()
2645 while ((bio = bio_list_pop(&bio_list))) in raid56_parity_scrub_stripe()
2682 bio_list_add(&rbio->bio_list, bio); in raid56_alloc_missing_rbio()