tmp->rdev->in_sync = 1;
set_bit(In_sync, &tmp->rdev->flags);
static int raid1_spare_active(mddev_t *mddev){	int i;	conf_t *conf = mddev->private;	mirror_info_t *tmp;	/*	 * Find all failed disks within the RAID1 configuration 	 * and mark them readable	 */	for (i = 0; i < conf->raid_disks; i++) {		tmp = conf->mirrors + i;		if (tmp->rdev 		    && !tmp->rdev->faulty		    && !tmp->rdev->in_sync) {			conf->working_disks++;			mddev->degraded--;			tmp->rdev->in_sync = 1;		}	}	print_conf(conf);	return 0;}