if (devmap->device) { if (devmap->device->gdp) set_disk_ro(devmap->device->gdp, ro_flag); if (ro_flag) set_bit(DASD_FLAG_RO, &devmap->device->flags); else clear_bit(DASD_FLAG_RO, &devmap->device->flags); } 
if (devmap->device && devmap->device->gdp) set_disk_ro(devmap->device->gdp, ro_flag); 
dasd_ro_store(struct device *dev, const char *buf, size_t count){	struct dasd_devmap *devmap;	int ro_flag;	devmap = dasd_devmap_from_cdev(to_ccwdev(dev));	if (IS_ERR(devmap))		return PTR_ERR(devmap);	ro_flag = buf[0] == '1';	spin_lock(&dasd_devmap_lock);	if (ro_flag)		devmap->features |= DASD_FEATURE_READONLY;	else		devmap->features &= ~DASD_FEATURE_READONLY;	if (devmap->device) {		if (devmap->device->gdp)			set_disk_ro(devmap->device->gdp, ro_flag);		if (ro_flag)			set_bit(DASD_FLAG_RO, &devmap->device->flags);		else			clear_bit(DASD_FLAG_RO, &devmap->device->flags);	}	spin_unlock(&dasd_devmap_lock);	return count;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/f24acd4503270ed4c842c8fef0b71105285e0a06/dasd_devmap.c/clean/drivers/s390/block/dasd_devmap.c