if (test_bit(WriteMostly, &rdev->flags)) info.state |= (1<<MD_DISK_WRITEMOSTLY); 
static int get_disk_info(mddev_t * mddev, void __user * arg){	mdu_disk_info_t info;	unsigned int nr;	mdk_rdev_t *rdev;	if (copy_from_user(&info, arg, sizeof(info)))		return -EFAULT;	nr = info.number;	rdev = find_rdev_nr(mddev, nr);	if (rdev) {		info.major = MAJOR(rdev->bdev->bd_dev);		info.minor = MINOR(rdev->bdev->bd_dev);		info.raid_disk = rdev->raid_disk;		info.state = 0;		if (rdev->faulty)			info.state |= (1<<MD_DISK_FAULTY);		else if (rdev->in_sync) {			info.state |= (1<<MD_DISK_ACTIVE);			info.state |= (1<<MD_DISK_SYNC);		}	} else {		info.major = info.minor = 0;		info.raid_disk = -1;		info.state = (1<<MD_DISK_REMOVED);	}	if (copy_to_user(arg, &info, sizeof(info)))		return -EFAULT;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8ddf9efe6708f3674f0ddfeb6425fd27bea109a2/md.c/clean/drivers/md/md.c