Lines Matching refs:towrite

598 		if (dev->toread || dev->read || dev->towrite || dev->written ||  in init_stripe()
602 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()
1960 chosen = dev->towrite; in ops_run_biodrain()
1961 dev->towrite = NULL; in ops_run_biodrain()
3398 if (dev->towrite && !delay_towrite(conf, dev, s)) { in schedule_reconstruction()
3439 if (dev->towrite && in schedule_reconstruction()
3501 bip = &sh->dev[dd_idx].towrite; in stripe_bio_overlaps()
3530 (i == dd_idx || sh->dev[i].towrite)) { in stripe_bio_overlaps()
3555 bip = &sh->dev[dd_idx].towrite; in __add_stripe_bio()
3578 for (bi=sh->dev[dd_idx].towrite; in __add_stripe_bio()
3690 bi = sh->dev[i].towrite; in handle_failed_stripe()
3691 sh->dev[i].towrite = NULL; in handle_failed_stripe()
3856 (dev->towrite && !test_bit(R5_OVERWRITE, &dev->flags))) in need_this_block()
3895 if (fdev[i]->towrite && in need_this_block()
3906 (fdev[i]->towrite || in need_this_block()
4215 if (((dev->towrite && !delay_towrite(conf, dev, s)) || in handle_stripe_dirtying()
4280 if (((dev->towrite && !delay_towrite(conf, dev, s)) || in handle_stripe_dirtying()
4722 dev->toread, dev->towrite, dev->written); in analyse_stripe()
4746 if (dev->towrite) { in analyse_stripe()
5830 if (sh->dev[d].towrite || sh->dev[d].toread) { in make_discard_request()
5844 sh->dev[d].towrite = bi; in make_discard_request()