Lines Matching refs:towrite
599 if (dev->toread || dev->read || dev->towrite || dev->written || in init_stripe()
603 dev->read, dev->towrite, dev->written, in init_stripe()
954 if (head->dev[dd_idx].towrite->bi_opf != sh->dev[dd_idx].towrite->bi_opf || in stripe_add_to_batch_list()
955 bio_op(head->dev[dd_idx].towrite) != bio_op(sh->dev[dd_idx].towrite)) in stripe_add_to_batch_list()
1945 chosen = dev->towrite; in ops_run_biodrain()
1946 dev->towrite = NULL; in ops_run_biodrain()
3355 if (dev->towrite && !delay_towrite(conf, dev, s)) { in schedule_reconstruction()
3396 if (dev->towrite && in schedule_reconstruction()
3458 bip = &sh->dev[dd_idx].towrite; in stripe_bio_overlaps()
3487 (i == dd_idx || sh->dev[i].towrite)) { in stripe_bio_overlaps()
3512 bip = &sh->dev[dd_idx].towrite; in __add_stripe_bio()
3535 for (bi=sh->dev[dd_idx].towrite; in __add_stripe_bio()
3645 bi = sh->dev[i].towrite; in handle_failed_stripe()
3646 sh->dev[i].towrite = NULL; in handle_failed_stripe()
3811 (dev->towrite && !test_bit(R5_OVERWRITE, &dev->flags))) in need_this_block()
3850 if (fdev[i]->towrite && in need_this_block()
3861 (fdev[i]->towrite || in need_this_block()
4170 if (((dev->towrite && !delay_towrite(conf, dev, s)) || in handle_stripe_dirtying()
4234 if (((dev->towrite && !delay_towrite(conf, dev, s)) || in handle_stripe_dirtying()
4674 dev->toread, dev->towrite, dev->written); in analyse_stripe()
4698 if (dev->towrite) { in analyse_stripe()
5765 if (sh->dev[d].towrite || sh->dev[d].toread) { in make_discard_request()
5779 sh->dev[d].towrite = bi; in make_discard_request()