/* Update disk head position estimator based on IRQ completion info.  */
static void update_head_pos(int disk, r1bio_t *r1_bio)
/* Update disk head position estimator based on IRQ completion info.  */
static void update_head_pos(int disk, r1bio_t *r1_bio)
{
	conf_t *conf = r1_bio->mddev->private;
	conf->mirrors[disk].head_position =
		r1_bio->sector + (r1_bio->sectors);
}