else if (rdev2->in_sync) 
else if (test_bit(In_sync, &rdev2->flags)) 
static void super_1_sync(mddev_t *mddev, mdk_rdev_t *rdev){	struct mdp_superblock_1 *sb;	struct list_head *tmp;	mdk_rdev_t *rdev2;	int max_dev, i;	/* make rdev->sb match mddev and rdev data. */	sb = (struct mdp_superblock_1*)page_address(rdev->sb_page);	sb->feature_map = 0;	sb->pad0 = 0;	memset(sb->pad1, 0, sizeof(sb->pad1));	memset(sb->pad2, 0, sizeof(sb->pad2));	memset(sb->pad3, 0, sizeof(sb->pad3));	sb->utime = cpu_to_le64((__u64)mddev->utime);	sb->events = cpu_to_le64(mddev->events);	if (mddev->in_sync)		sb->resync_offset = cpu_to_le64(mddev->recovery_cp);	else		sb->resync_offset = cpu_to_le64(0);	if (mddev->bitmap && mddev->bitmap_file == NULL) {		sb->bitmap_offset = cpu_to_le32((__u32)mddev->bitmap_offset);		sb->feature_map = cpu_to_le32(MD_FEATURE_BITMAP_OFFSET);	}	max_dev = 0;	ITERATE_RDEV(mddev,rdev2,tmp)		if (rdev2->desc_nr+1 > max_dev)			max_dev = rdev2->desc_nr+1;		sb->max_dev = cpu_to_le32(max_dev);	for (i=0; i<max_dev;i++)		sb->dev_roles[i] = cpu_to_le16(0xfffe);		ITERATE_RDEV(mddev,rdev2,tmp) {		i = rdev2->desc_nr;		if (rdev2->faulty)			sb->dev_roles[i] = cpu_to_le16(0xfffe);		else if (rdev2->in_sync)			sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk);		else			sb->dev_roles[i] = cpu_to_le16(0xffff);	}	sb->recovery_offset = cpu_to_le64(0); /* not supported yet */	sb->sb_csum = calc_sb_1_csum(sb);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b2d444d7ad975d555bb919601bcdc0e58975a40e/md.c/buggy/drivers/md/md.c