if (rdev->in_sync) 
if (test_bit(In_sync, &rdev->flags)) 
static int get_array_info(mddev_t * mddev, void __user * arg){	mdu_array_info_t info;	int nr,working,active,failed,spare;	mdk_rdev_t *rdev;	struct list_head *tmp;	nr=working=active=failed=spare=0;	ITERATE_RDEV(mddev,rdev,tmp) {		nr++;		if (rdev->faulty)			failed++;		else {			working++;			if (rdev->in_sync)				active++;				else				spare++;		}	}	info.major_version = mddev->major_version;	info.minor_version = mddev->minor_version;	info.patch_version = MD_PATCHLEVEL_VERSION;	info.ctime         = mddev->ctime;	info.level         = mddev->level;	info.size          = mddev->size;	info.nr_disks      = nr;	info.raid_disks    = mddev->raid_disks;	info.md_minor      = mddev->md_minor;	info.not_persistent= !mddev->persistent;	info.utime         = mddev->utime;	info.state         = 0;	if (mddev->in_sync)		info.state = (1<<MD_SB_CLEAN);	if (mddev->bitmap && mddev->bitmap_offset)		info.state = (1<<MD_SB_BITMAP_PRESENT);	info.active_disks  = active;	info.working_disks = working;	info.failed_disks  = failed;	info.spare_disks   = spare;	info.layout        = mddev->layout;	info.chunk_size    = mddev->chunk_size;	if (copy_to_user(arg, &info, sizeof(info)))		return -EFAULT;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/b2d444d7ad975d555bb919601bcdc0e58975a40e/md.c/buggy/drivers/md/md.c