Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[S390] dasd whitespace and other cosmetics.

Dasd code cleanup: 1) remove white space, 2) remove the emacs override
sections, and 3) use kzalloc instead of kmalloc.

Signed-off-by: Horst Hummel <horst.hummel@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Horst Hummel and committed by
Martin Schwidefsky
138c014d 63b12246

+173 -304
+18 -36
drivers/s390/block/dasd.c
··· 95 95 spin_lock_init(&device->mem_lock); 96 96 spin_lock_init(&device->request_queue_lock); 97 97 atomic_set (&device->tasklet_scheduled, 0); 98 - tasklet_init(&device->tasklet, 98 + tasklet_init(&device->tasklet, 99 99 (void (*)(unsigned long)) dasd_tasklet, 100 100 (unsigned long) device); 101 101 INIT_LIST_HEAD(&device->ccw_queue); ··· 128 128 int rc; 129 129 130 130 /* 131 - * As long as the device is not in state DASD_STATE_NEW we want to 131 + * As long as the device is not in state DASD_STATE_NEW we want to 132 132 * keep the reference count > 0. 133 133 */ 134 134 dasd_get_device(device); ··· 336 336 if (device->state == DASD_STATE_ONLINE && 337 337 device->target <= DASD_STATE_READY) 338 338 dasd_state_online_to_ready(device); 339 - 339 + 340 340 if (device->state == DASD_STATE_READY && 341 341 device->target <= DASD_STATE_BASIC) 342 342 dasd_state_ready_to_basic(device); ··· 348 348 if (device->state == DASD_STATE_BASIC && 349 349 device->target <= DASD_STATE_KNOWN) 350 350 dasd_state_basic_to_known(device); 351 - 351 + 352 352 if (device->state == DASD_STATE_KNOWN && 353 353 device->target <= DASD_STATE_NEW) 354 354 dasd_state_known_to_new(device); ··· 994 994 ((irb->scsw.cstat << 8) | irb->scsw.dstat), cqr); 995 995 996 996 /* Find out the appropriate era_action. */ 997 - if (irb->scsw.fctl & SCSW_FCTL_HALT_FUNC) 997 + if (irb->scsw.fctl & SCSW_FCTL_HALT_FUNC) 998 998 era = dasd_era_fatal; 999 999 else if (irb->scsw.dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END) && 1000 1000 irb->scsw.cstat == 0 && ··· 1004 1004 era = dasd_era_fatal; /* don't recover this request */ 1005 1005 else if (irb->esw.esw0.erw.cons) 1006 1006 era = device->discipline->examine_error(cqr, irb); 1007 - else 1007 + else 1008 1008 era = dasd_era_recover; 1009 1009 1010 1010 DBF_DEV_EVENT(DBF_DEBUG, device, "era_code %d", era); ··· 1287 1287 } 1288 1288 1289 1289 /* 1290 - * Remove requests from the ccw queue. 1290 + * Remove requests from the ccw queue. 1291 1291 */ 1292 1292 static void 1293 1293 dasd_flush_ccw_queue(struct dasd_device * device, int all) ··· 1450 1450 wait_queue_head_t wait_q; 1451 1451 struct dasd_device *device; 1452 1452 int rc; 1453 - 1453 + 1454 1454 device = cqr->device; 1455 1455 spin_lock_irq(get_ccwdev_lock(device->cdev)); 1456 - 1456 + 1457 1457 init_waitqueue_head (&wait_q); 1458 1458 cqr->callback = dasd_wakeup_cb; 1459 1459 cqr->callback_data = (void *) &wait_q; 1460 1460 cqr->status = DASD_CQR_QUEUED; 1461 1461 list_add_tail(&cqr->list, &device->ccw_queue); 1462 - 1462 + 1463 1463 /* let the bh start the request to keep them in order */ 1464 1464 dasd_schedule_bh(device); 1465 - 1465 + 1466 1466 spin_unlock_irq(get_ccwdev_lock(device->cdev)); 1467 1467 1468 1468 wait_event(wait_q, _wait_for_wakeup(cqr)); 1469 - 1469 + 1470 1470 /* Request status is either done or failed. */ 1471 1471 rc = (cqr->status == DASD_CQR_FAILED) ? -EIO : 0; 1472 1472 return rc; ··· 1568 1568 wait_queue_head_t wait_q; 1569 1569 struct dasd_device *device; 1570 1570 int rc; 1571 - 1571 + 1572 1572 device = cqr->device; 1573 1573 spin_lock_irq(get_ccwdev_lock(device->cdev)); 1574 1574 rc = _dasd_term_running_cqr(device); ··· 1576 1576 spin_unlock_irq(get_ccwdev_lock(device->cdev)); 1577 1577 return rc; 1578 1578 } 1579 - 1579 + 1580 1580 init_waitqueue_head (&wait_q); 1581 1581 cqr->callback = dasd_wakeup_cb; 1582 1582 cqr->callback_data = (void *) &wait_q; 1583 1583 cqr->status = DASD_CQR_QUEUED; 1584 1584 list_add(&cqr->list, &device->ccw_queue); 1585 - 1585 + 1586 1586 /* let the bh start the request to keep them in order */ 1587 1587 dasd_schedule_bh(device); 1588 - 1588 + 1589 1589 spin_unlock_irq(get_ccwdev_lock(device->cdev)); 1590 1590 1591 1591 wait_event(wait_q, _wait_for_wakeup(cqr)); 1592 - 1592 + 1593 1593 /* Request status is either done or failed. */ 1594 1594 rc = (cqr->status == DASD_CQR_FAILED) ? -EIO : 0; 1595 1595 return rc; ··· 1725 1725 1726 1726 if (!device->request_queue) 1727 1727 return; 1728 - 1728 + 1729 1729 spin_lock_irq(&device->request_queue_lock); 1730 1730 while (!list_empty(&device->request_queue->queue_head)) { 1731 1731 req = elv_next_request(device->request_queue); ··· 2172 2172 EXPORT_SYMBOL_GPL(dasd_generic_set_offline); 2173 2173 EXPORT_SYMBOL_GPL(dasd_generic_auto_online); 2174 2174 2175 - /* 2176 - * Overrides for Emacs so that we follow Linus's tabbing style. 2177 - * Emacs will notice this stuff at the end of the file and automatically 2178 - * adjust the settings for this buffer only. This must remain at the end 2179 - * of the file. 2180 - * --------------------------------------------------------------------------- 2181 - * Local variables: 2182 - * c-indent-level: 4 2183 - * c-brace-imaginary-offset: 0 2184 - * c-brace-offset: -4 2185 - * c-argdecl-indent: 4 2186 - * c-label-offset: -4 2187 - * c-continued-statement-offset: 4 2188 - * c-continued-brace-offset: 0 2189 - * indent-tabs-mode: 1 2190 - * tab-width: 8 2191 - * End: 2192 - */
+4 -23
drivers/s390/block/dasd_3370_erp.c
··· 1 - /* 1 + /* 2 2 * File...........: linux/drivers/s390/block/dasd_3370_erp.c 3 3 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com> 4 4 * Bugreports.to..: <Linux390@de.ibm.com> ··· 12 12 13 13 14 14 /* 15 - * DASD_3370_ERP_EXAMINE 15 + * DASD_3370_ERP_EXAMINE 16 16 * 17 17 * DESCRIPTION 18 - * Checks only for fatal/no/recover error. 18 + * Checks only for fatal/no/recover error. 19 19 * A detailed examination of the sense data is done later outside 20 20 * the interrupt handler. 21 21 * ··· 23 23 * 'Chapter 7. 3370 Sense Data'. 24 24 * 25 25 * RETURN VALUES 26 - * dasd_era_none no error 26 + * dasd_era_none no error 27 27 * dasd_era_fatal for all fatal (unrecoverable errors) 28 28 * dasd_era_recover for all others. 29 29 */ ··· 82 82 return dasd_era_recover; 83 83 84 84 } /* END dasd_3370_erp_examine */ 85 - 86 - /* 87 - * Overrides for Emacs so that we follow Linus's tabbing style. 88 - * Emacs will notice this stuff at the end of the file and automatically 89 - * adjust the settings for this buffer only. This must remain at the end 90 - * of the file. 91 - * --------------------------------------------------------------------------- 92 - * Local variables: 93 - * c-indent-level: 4 94 - * c-brace-imaginary-offset: 0 95 - * c-brace-offset: -4 96 - * c-argdecl-indent: 4 97 - * c-label-offset: -4 98 - * c-continued-statement-offset: 4 99 - * c-continued-brace-offset: 0 100 - * indent-tabs-mode: 1 101 - * tab-width: 8 102 - * End: 103 - */
+85 -104
drivers/s390/block/dasd_3990_erp.c
··· 1 - /* 1 + /* 2 2 * File...........: linux/drivers/s390/block/dasd_3990_erp.c 3 - * Author(s)......: Horst Hummel <Horst.Hummel@de.ibm.com> 3 + * Author(s)......: Horst Hummel <Horst.Hummel@de.ibm.com> 4 4 * Holger Smolinski <Holger.Smolinski@de.ibm.com> 5 5 * Bugreports.to..: <Linux390@de.ibm.com> 6 6 * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 2000, 2001 ··· 25 25 } __attribute__ ((packed)); 26 26 27 27 /* 28 - ***************************************************************************** 28 + ***************************************************************************** 29 29 * SECTION ERP EXAMINATION 30 - ***************************************************************************** 30 + ***************************************************************************** 31 31 */ 32 32 33 33 /* 34 - * DASD_3990_ERP_EXAMINE_24 34 + * DASD_3990_ERP_EXAMINE_24 35 35 * 36 36 * DESCRIPTION 37 - * Checks only for fatal (unrecoverable) error. 37 + * Checks only for fatal (unrecoverable) error. 38 38 * A detailed examination of the sense data is done later outside 39 39 * the interrupt handler. 40 40 * 41 41 * Each bit configuration leading to an action code 2 (Exit with 42 42 * programming error or unusual condition indication) 43 43 * are handled as fatal error�s. 44 - * 44 + * 45 45 * All other configurations are handled as recoverable errors. 46 46 * 47 47 * RETURN VALUES ··· 93 93 } /* END dasd_3990_erp_examine_24 */ 94 94 95 95 /* 96 - * DASD_3990_ERP_EXAMINE_32 96 + * DASD_3990_ERP_EXAMINE_32 97 97 * 98 98 * DESCRIPTION 99 - * Checks only for fatal/no/recoverable error. 99 + * Checks only for fatal/no/recoverable error. 100 100 * A detailed examination of the sense data is done later outside 101 101 * the interrupt handler. 102 102 * 103 103 * RETURN VALUES 104 - * dasd_era_none no error 104 + * dasd_era_none no error 105 105 * dasd_era_fatal for all fatal (unrecoverable errors) 106 106 * dasd_era_recover for recoverable others. 107 107 */ ··· 128 128 } /* end dasd_3990_erp_examine_32 */ 129 129 130 130 /* 131 - * DASD_3990_ERP_EXAMINE 131 + * DASD_3990_ERP_EXAMINE 132 132 * 133 133 * DESCRIPTION 134 - * Checks only for fatal/no/recover error. 134 + * Checks only for fatal/no/recover error. 135 135 * A detailed examination of the sense data is done later outside 136 136 * the interrupt handler. 137 137 * ··· 139 139 * 'Chapter 7. Error Recovery Procedures'. 140 140 * 141 141 * RETURN VALUES 142 - * dasd_era_none no error 142 + * dasd_era_none no error 143 143 * dasd_era_fatal for all fatal (unrecoverable errors) 144 144 * dasd_era_recover for all others. 145 145 */ ··· 178 178 } /* END dasd_3990_erp_examine */ 179 179 180 180 /* 181 - ***************************************************************************** 181 + ***************************************************************************** 182 182 * SECTION ERP HANDLING 183 - ***************************************************************************** 183 + ***************************************************************************** 184 184 */ 185 185 /* 186 - ***************************************************************************** 186 + ***************************************************************************** 187 187 * 24 and 32 byte sense ERP functions 188 - ***************************************************************************** 188 + ***************************************************************************** 189 189 */ 190 190 191 191 /* 192 - * DASD_3990_ERP_CLEANUP 192 + * DASD_3990_ERP_CLEANUP 193 193 * 194 194 * DESCRIPTION 195 195 * Removes the already build but not necessary ERP request and sets ··· 197 197 * 198 198 * PARAMETER 199 199 * erp request to be blocked 200 - * final_status either DASD_CQR_DONE or DASD_CQR_FAILED 200 + * final_status either DASD_CQR_DONE or DASD_CQR_FAILED 201 201 * 202 202 * RETURN VALUES 203 - * cqr original cqr 203 + * cqr original cqr 204 204 */ 205 205 static struct dasd_ccw_req * 206 206 dasd_3990_erp_cleanup(struct dasd_ccw_req * erp, char final_status) ··· 214 214 } /* end dasd_3990_erp_cleanup */ 215 215 216 216 /* 217 - * DASD_3990_ERP_BLOCK_QUEUE 217 + * DASD_3990_ERP_BLOCK_QUEUE 218 218 * 219 219 * DESCRIPTION 220 220 * Block the given device request queue to prevent from further ··· 237 237 } 238 238 239 239 /* 240 - * DASD_3990_ERP_INT_REQ 240 + * DASD_3990_ERP_INT_REQ 241 241 * 242 242 * DESCRIPTION 243 243 * Handles 'Intervention Required' error. ··· 277 277 } /* end dasd_3990_erp_int_req */ 278 278 279 279 /* 280 - * DASD_3990_ERP_ALTERNATE_PATH 280 + * DASD_3990_ERP_ALTERNATE_PATH 281 281 * 282 282 * DESCRIPTION 283 283 * Repeat the operation on a different channel path. ··· 330 330 * DASD_3990_ERP_DCTL 331 331 * 332 332 * DESCRIPTION 333 - * Setup cqr to do the Diagnostic Control (DCTL) command with an 333 + * Setup cqr to do the Diagnostic Control (DCTL) command with an 334 334 * Inhibit Write subcommand (0x20) and the given modifier. 335 335 * 336 336 * PARAMETER 337 337 * erp pointer to the current (failed) ERP 338 338 * modifier subcommand modifier 339 - * 339 + * 340 340 * RETURN VALUES 341 - * dctl_cqr pointer to NEW dctl_cqr 341 + * dctl_cqr pointer to NEW dctl_cqr 342 342 * 343 343 */ 344 344 static struct dasd_ccw_req * ··· 386 386 } /* end dasd_3990_erp_DCTL */ 387 387 388 388 /* 389 - * DASD_3990_ERP_ACTION_1 389 + * DASD_3990_ERP_ACTION_1 390 390 * 391 391 * DESCRIPTION 392 392 * Setup ERP to do the ERP action 1 (see Reference manual). ··· 415 415 } /* end dasd_3990_erp_action_1 */ 416 416 417 417 /* 418 - * DASD_3990_ERP_ACTION_4 418 + * DASD_3990_ERP_ACTION_4 419 419 * 420 420 * DESCRIPTION 421 421 * Setup ERP to do the ERP action 4 (see Reference manual). ··· 453 453 454 454 if (sense[25] == 0x1D) { /* state change pending */ 455 455 456 - DEV_MESSAGE(KERN_INFO, device, 456 + DEV_MESSAGE(KERN_INFO, device, 457 457 "waiting for state change pending " 458 458 "interrupt, %d retries left", 459 459 erp->retries); 460 - 460 + 461 461 dasd_3990_erp_block_queue(erp, 30*HZ); 462 462 463 463 } else if (sense[25] == 0x1E) { /* busy */ ··· 469 469 } else { 470 470 471 471 /* no state change pending - retry */ 472 - DEV_MESSAGE (KERN_INFO, device, 472 + DEV_MESSAGE (KERN_INFO, device, 473 473 "redriving request immediately, " 474 - "%d retries left", 474 + "%d retries left", 475 475 erp->retries); 476 476 erp->status = DASD_CQR_QUEUED; 477 477 } ··· 482 482 } /* end dasd_3990_erp_action_4 */ 483 483 484 484 /* 485 - ***************************************************************************** 485 + ***************************************************************************** 486 486 * 24 byte sense ERP functions (only) 487 - ***************************************************************************** 487 + ***************************************************************************** 488 488 */ 489 489 490 490 /* 491 - * DASD_3990_ERP_ACTION_5 491 + * DASD_3990_ERP_ACTION_5 492 492 * 493 493 * DESCRIPTION 494 494 * Setup ERP to do the ERP action 5 (see Reference manual). ··· 523 523 * 524 524 * PARAMETER 525 525 * sense current sense data 526 - * 526 + * 527 527 * RETURN VALUES 528 528 * void 529 529 */ ··· 1150 1150 * PARAMETER 1151 1151 * erp current erp_head 1152 1152 * sense current sense data 1153 - * 1153 + * 1154 1154 * RETURN VALUES 1155 - * erp 'new' erp_head - pointer to new ERP 1155 + * erp 'new' erp_head - pointer to new ERP 1156 1156 */ 1157 1157 static struct dasd_ccw_req * 1158 1158 dasd_3990_erp_com_rej(struct dasd_ccw_req * erp, char *sense) ··· 1185 1185 } /* end dasd_3990_erp_com_rej */ 1186 1186 1187 1187 /* 1188 - * DASD_3990_ERP_BUS_OUT 1188 + * DASD_3990_ERP_BUS_OUT 1189 1189 * 1190 1190 * DESCRIPTION 1191 1191 * Handles 24 byte 'Bus Out Parity Check' error. ··· 1483 1483 * 1484 1484 * PARAMETER 1485 1485 * erp already added default ERP 1486 - * 1486 + * 1487 1487 * RETURN VALUES 1488 1488 * erp new erp_head - pointer to new ERP 1489 1489 */ ··· 1527 1527 } /* end dasd_3990_erp_file_prot */ 1528 1528 1529 1529 /* 1530 - * DASD_3990_ERP_INSPECT_24 1530 + * DASD_3990_ERP_INSPECT_24 1531 1531 * 1532 1532 * DESCRIPTION 1533 1533 * Does a detailed inspection of the 24 byte sense data 1534 - * and sets up a related error recovery action. 1534 + * and sets up a related error recovery action. 1535 1535 * 1536 1536 * PARAMETER 1537 1537 * sense sense data of the actual error ··· 1602 1602 } /* END dasd_3990_erp_inspect_24 */ 1603 1603 1604 1604 /* 1605 - ***************************************************************************** 1605 + ***************************************************************************** 1606 1606 * 32 byte sense ERP functions (only) 1607 - ***************************************************************************** 1607 + ***************************************************************************** 1608 1608 */ 1609 1609 1610 1610 /* 1611 - * DASD_3990_ERPACTION_10_32 1611 + * DASD_3990_ERPACTION_10_32 1612 1612 * 1613 1613 * DESCRIPTION 1614 1614 * Handles 32 byte 'Action 10' of Single Program Action Codes. ··· 1616 1616 * 1617 1617 * PARAMETER 1618 1618 * erp current erp_head 1619 - * sense current sense data 1619 + * sense current sense data 1620 1620 * RETURN VALUES 1621 1621 * erp modified erp_head 1622 1622 */ ··· 1640 1640 * 1641 1641 * DESCRIPTION 1642 1642 * Handles 32 byte 'Action 1B' of Single Program Action Codes. 1643 - * A write operation could not be finished because of an unexpected 1643 + * A write operation could not be finished because of an unexpected 1644 1644 * condition. 1645 - * The already created 'default erp' is used to get the link to 1646 - * the erp chain, but it can not be used for this recovery 1645 + * The already created 'default erp' is used to get the link to 1646 + * the erp chain, but it can not be used for this recovery 1647 1647 * action because it contains no DE/LO data space. 1648 1648 * 1649 1649 * PARAMETER 1650 1650 * default_erp already added default erp. 1651 - * sense current sense data 1651 + * sense current sense data 1652 1652 * 1653 1653 * RETURN VALUES 1654 - * erp new erp or 1654 + * erp new erp or 1655 1655 * default_erp in case of imprecise ending or error 1656 1656 */ 1657 1657 static struct dasd_ccw_req * ··· 1789 1789 * DASD_3990_UPDATE_1B 1790 1790 * 1791 1791 * DESCRIPTION 1792 - * Handles the update to the 32 byte 'Action 1B' of Single Program 1792 + * Handles the update to the 32 byte 'Action 1B' of Single Program 1793 1793 * Action Codes in case the first action was not successful. 1794 1794 * The already created 'previous_erp' is the currently not successful 1795 - * ERP. 1795 + * ERP. 1796 1796 * 1797 1797 * PARAMETER 1798 1798 * previous_erp already created previous erp. 1799 - * sense current sense data 1799 + * sense current sense data 1800 1800 * RETURN VALUES 1801 - * erp modified erp 1801 + * erp modified erp 1802 1802 */ 1803 1803 static struct dasd_ccw_req * 1804 1804 dasd_3990_update_1B(struct dasd_ccw_req * previous_erp, char *sense) ··· 1897 1897 } /* end dasd_3990_update_1B */ 1898 1898 1899 1899 /* 1900 - * DASD_3990_ERP_COMPOUND_RETRY 1900 + * DASD_3990_ERP_COMPOUND_RETRY 1901 1901 * 1902 1902 * DESCRIPTION 1903 1903 * Handles the compound ERP action retry code. ··· 1943 1943 } /* end dasd_3990_erp_compound_retry */ 1944 1944 1945 1945 /* 1946 - * DASD_3990_ERP_COMPOUND_PATH 1946 + * DASD_3990_ERP_COMPOUND_PATH 1947 1947 * 1948 1948 * DESCRIPTION 1949 1949 * Handles the compound ERP action for retry on alternate ··· 1965 1965 dasd_3990_erp_alternate_path(erp); 1966 1966 1967 1967 if (erp->status == DASD_CQR_FAILED) { 1968 - /* reset the lpm and the status to be able to 1968 + /* reset the lpm and the status to be able to 1969 1969 * try further actions. */ 1970 1970 1971 1971 erp->lpm = 0; ··· 1980 1980 } /* end dasd_3990_erp_compound_path */ 1981 1981 1982 1982 /* 1983 - * DASD_3990_ERP_COMPOUND_CODE 1983 + * DASD_3990_ERP_COMPOUND_CODE 1984 1984 * 1985 1985 * DESCRIPTION 1986 1986 * Handles the compound ERP action for retry code. ··· 2001 2001 2002 2002 switch (sense[28]) { 2003 2003 case 0x17: 2004 - /* issue a Diagnostic Control command with an 2004 + /* issue a Diagnostic Control command with an 2005 2005 * Inhibit Write subcommand and controler modifier */ 2006 2006 erp = dasd_3990_erp_DCTL(erp, 0x20); 2007 2007 break; 2008 - 2008 + 2009 2009 case 0x25: 2010 2010 /* wait for 5 seconds and retry again */ 2011 2011 erp->retries = 1; 2012 - 2012 + 2013 2013 dasd_3990_erp_block_queue (erp, 5*HZ); 2014 2014 break; 2015 - 2015 + 2016 2016 default: 2017 2017 /* should not happen - continue */ 2018 2018 break; ··· 2026 2026 } /* end dasd_3990_erp_compound_code */ 2027 2027 2028 2028 /* 2029 - * DASD_3990_ERP_COMPOUND_CONFIG 2029 + * DASD_3990_ERP_COMPOUND_CONFIG 2030 2030 * 2031 2031 * DESCRIPTION 2032 2032 * Handles the compound ERP action for configruation ··· 2063 2063 } /* end dasd_3990_erp_compound_config */ 2064 2064 2065 2065 /* 2066 - * DASD_3990_ERP_COMPOUND 2066 + * DASD_3990_ERP_COMPOUND 2067 2067 * 2068 2068 * DESCRIPTION 2069 - * Does the further compound program action if 2069 + * Does the further compound program action if 2070 2070 * compound retry was not successful. 2071 2071 * 2072 2072 * PARAMETER ··· 2110 2110 } /* end dasd_3990_erp_compound */ 2111 2111 2112 2112 /* 2113 - * DASD_3990_ERP_INSPECT_32 2113 + * DASD_3990_ERP_INSPECT_32 2114 2114 * 2115 2115 * DESCRIPTION 2116 2116 * Does a detailed inspection of the 32 byte sense data 2117 - * and sets up a related error recovery action. 2117 + * and sets up a related error recovery action. 2118 2118 * 2119 2119 * PARAMETER 2120 2120 * sense sense data of the actual error ··· 2228 2228 } /* end dasd_3990_erp_inspect_32 */ 2229 2229 2230 2230 /* 2231 - ***************************************************************************** 2231 + ***************************************************************************** 2232 2232 * main ERP control fuctions (24 and 32 byte sense) 2233 - ***************************************************************************** 2233 + ***************************************************************************** 2234 2234 */ 2235 2235 2236 2236 /* ··· 2243 2243 * PARAMETER 2244 2244 * erp pointer to the currently created default ERP 2245 2245 * RETURN VALUES 2246 - * erp_new contens was possibly modified 2246 + * erp_new contens was possibly modified 2247 2247 */ 2248 2248 static struct dasd_ccw_req * 2249 2249 dasd_3990_erp_inspect(struct dasd_ccw_req * erp) ··· 2272 2272 2273 2273 /* 2274 2274 * DASD_3990_ERP_ADD_ERP 2275 - * 2275 + * 2276 2276 * DESCRIPTION 2277 2277 * This funtion adds an additional request block (ERP) to the head of 2278 2278 * the given cqr (or erp). 2279 2279 * This erp is initialized as an default erp (retry TIC) 2280 2280 * 2281 2281 * PARAMETER 2282 - * cqr head of the current ERP-chain (or single cqr if 2282 + * cqr head of the current ERP-chain (or single cqr if 2283 2283 * first error) 2284 2284 * RETURN VALUES 2285 2285 * erp pointer to new ERP-chain head ··· 2332 2332 } 2333 2333 2334 2334 /* 2335 - * DASD_3990_ERP_ADDITIONAL_ERP 2336 - * 2335 + * DASD_3990_ERP_ADDITIONAL_ERP 2336 + * 2337 2337 * DESCRIPTION 2338 2338 * An additional ERP is needed to handle the current error. 2339 2339 * Add ERP to the head of the ERP-chain containing the ERP processing 2340 2340 * determined based on the sense data. 2341 2341 * 2342 2342 * PARAMETER 2343 - * cqr head of the current ERP-chain (or single cqr if 2343 + * cqr head of the current ERP-chain (or single cqr if 2344 2344 * first error) 2345 2345 * 2346 2346 * RETURN VALUES ··· 2376 2376 * 24 byte sense byte 25 and 27 is set as well. 2377 2377 * 2378 2378 * PARAMETER 2379 - * cqr1 first cqr, which will be compared with the 2379 + * cqr1 first cqr, which will be compared with the 2380 2380 * cqr2 second cqr. 2381 2381 * 2382 2382 * RETURN VALUES ··· 2415 2415 * cqr failed cqr (either original cqr or already an erp) 2416 2416 * 2417 2417 * RETURN VALUES 2418 - * erp erp-pointer to the already defined error 2418 + * erp erp-pointer to the already defined error 2419 2419 * recovery procedure OR 2420 2420 * NULL if a 'new' error occurred. 2421 2421 */ ··· 2451 2451 * DASD_3990_ERP_FURTHER_ERP (24 & 32 byte sense) 2452 2452 * 2453 2453 * DESCRIPTION 2454 - * No retry is left for the current ERP. Check what has to be done 2454 + * No retry is left for the current ERP. Check what has to be done 2455 2455 * with the ERP. 2456 2456 * - do further defined ERP action or 2457 - * - wait for interrupt or 2457 + * - wait for interrupt or 2458 2458 * - exit with permanent error 2459 2459 * 2460 2460 * PARAMETER ··· 2485 2485 2486 2486 if (!(sense[2] & DASD_SENSE_BIT_0)) { 2487 2487 2488 - /* issue a Diagnostic Control command with an 2488 + /* issue a Diagnostic Control command with an 2489 2489 * Inhibit Write subcommand */ 2490 2490 2491 2491 switch (sense[25]) { ··· 2535 2535 } /* end dasd_3990_erp_further_erp */ 2536 2536 2537 2537 /* 2538 - * DASD_3990_ERP_HANDLE_MATCH_ERP 2538 + * DASD_3990_ERP_HANDLE_MATCH_ERP 2539 2539 * 2540 2540 * DESCRIPTION 2541 2541 * An error occurred again and an ERP has been detected which is already 2542 - * used to handle this error (e.g. retries). 2542 + * used to handle this error (e.g. retries). 2543 2543 * All prior ERP's are asumed to be successful and therefore removed 2544 2544 * from queue. 2545 - * If retry counter of matching erp is already 0, it is checked if further 2545 + * If retry counter of matching erp is already 0, it is checked if further 2546 2546 * action is needed (besides retry) or if the ERP has failed. 2547 2547 * 2548 2548 * PARAMETER ··· 2631 2631 * erp erp-pointer to the head of the ERP action chain. 2632 2632 * This means: 2633 2633 * - either a ptr to an additional ERP cqr or 2634 - * - the original given cqr (which's status might 2634 + * - the original given cqr (which's status might 2635 2635 * be modified) 2636 2636 */ 2637 2637 struct dasd_ccw_req * ··· 2723 2723 return erp; 2724 2724 2725 2725 } /* end dasd_3990_erp_action */ 2726 - 2727 - /* 2728 - * Overrides for Emacs so that we follow Linus's tabbing style. 2729 - * Emacs will notice this stuff at the end of the file and automatically 2730 - * adjust the settings for this buffer only. This must remain at the end 2731 - * of the file. 2732 - * --------------------------------------------------------------------------- 2733 - * Local variables: 2734 - * c-indent-level: 4 2735 - * c-brace-imaginary-offset: 0 2736 - * c-brace-offset: -4 2737 - * c-argdecl-indent: 4 2738 - * c-label-offset: -4 2739 - * c-continued-statement-offset: 4 2740 - * c-continued-brace-offset: 0 2741 - * indent-tabs-mode: 1 2742 - * tab-width: 8 2743 - * End: 2744 - */
+4 -23
drivers/s390/block/dasd_9336_erp.c
··· 1 - /* 1 + /* 2 2 * File...........: linux/drivers/s390/block/dasd_9336_erp.c 3 3 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com> 4 4 * Bugreports.to..: <Linux390@de.ibm.com> ··· 12 12 13 13 14 14 /* 15 - * DASD_9336_ERP_EXAMINE 15 + * DASD_9336_ERP_EXAMINE 16 16 * 17 17 * DESCRIPTION 18 - * Checks only for fatal/no/recover error. 18 + * Checks only for fatal/no/recover error. 19 19 * A detailed examination of the sense data is done later outside 20 20 * the interrupt handler. 21 21 * ··· 23 23 * 'Chapter 7. 9336 Sense Data'. 24 24 * 25 25 * RETURN VALUES 26 - * dasd_era_none no error 26 + * dasd_era_none no error 27 27 * dasd_era_fatal for all fatal (unrecoverable errors) 28 28 * dasd_era_recover for all others. 29 29 */ ··· 39 39 return dasd_era_recover; 40 40 41 41 } /* END dasd_9336_erp_examine */ 42 - 43 - /* 44 - * Overrides for Emacs so that we follow Linus's tabbing style. 45 - * Emacs will notice this stuff at the end of the file and automatically 46 - * adjust the settings for this buffer only. This must remain at the end 47 - * of the file. 48 - * --------------------------------------------------------------------------- 49 - * Local variables: 50 - * c-indent-level: 4 51 - * c-brace-imaginary-offset: 0 52 - * c-brace-offset: -4 53 - * c-argdecl-indent: 4 54 - * c-label-offset: -4 55 - * c-continued-statement-offset: 4 56 - * c-continued-brace-offset: 0 57 - * indent-tabs-mode: 1 58 - * tab-width: 8 59 - * End: 60 - */
+1 -1
drivers/s390/block/dasd_9343_erp.c
··· 1 - /* 1 + /* 2 2 * File...........: linux/drivers/s390/block/dasd_9345_erp.c 3 3 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com> 4 4 * Bugreports.to..: <Linux390@de.ibm.com>
+12 -10
drivers/s390/block/dasd_devmap.c
··· 123 123 dasd_busid(char **str, int *id0, int *id1, int *devno) 124 124 { 125 125 int val, old_style; 126 - 126 + 127 127 /* check for leading '0x' */ 128 128 old_style = 0; 129 129 if ((*str)[0] == '0' && (*str)[1] == 'x') { ··· 179 179 features = 0; 180 180 181 181 while (1) { 182 - for (len = 0; 182 + for (len = 0; 183 183 str[len] && str[len] != ':' && str[len] != ')'; len++); 184 184 if (len == 2 && !strncmp(str, "ro", 2)) 185 185 features |= DASD_FEATURE_READONLY; ··· 359 359 * Add a devmap for the device specified by busid. It is possible that 360 360 * the devmap already exists (dasd= parameter). The order of the devices 361 361 * added through this function will define the kdevs for the individual 362 - * devices. 362 + * devices. 363 363 */ 364 364 static struct dasd_devmap * 365 365 dasd_add_busid(char *bus_id, int features) ··· 368 368 int hash; 369 369 370 370 new = (struct dasd_devmap *) 371 - kmalloc(sizeof(struct dasd_devmap), GFP_KERNEL); 371 + kzalloc(sizeof(struct dasd_devmap), GFP_KERNEL); 372 372 if (!new) 373 373 return ERR_PTR(-ENOMEM); 374 374 spin_lock(&dasd_devmap_lock); ··· 630 630 } 631 631 632 632 static ssize_t 633 - dasd_ro_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) 633 + dasd_ro_store(struct device *dev, struct device_attribute *attr, 634 + const char *buf, size_t count) 634 635 { 635 636 struct dasd_devmap *devmap; 636 637 int ro_flag; ··· 659 658 * use_diag controls whether the driver should use diag rather than ssch 660 659 * to talk to the device 661 660 */ 662 - static ssize_t 661 + static ssize_t 663 662 dasd_use_diag_show(struct device *dev, struct device_attribute *attr, char *buf) 664 663 { 665 664 struct dasd_devmap *devmap; ··· 674 673 } 675 674 676 675 static ssize_t 677 - dasd_use_diag_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) 676 + dasd_use_diag_store(struct device *dev, struct device_attribute *attr, 677 + const char *buf, size_t count) 678 678 { 679 679 struct dasd_devmap *devmap; 680 680 ssize_t rc; ··· 699 697 return rc; 700 698 } 701 699 702 - static 703 - DEVICE_ATTR(use_diag, 0644, dasd_use_diag_show, dasd_use_diag_store); 700 + static DEVICE_ATTR(use_diag, 0644, dasd_use_diag_show, dasd_use_diag_store); 704 701 705 702 static ssize_t 706 - dasd_discipline_show(struct device *dev, struct device_attribute *attr, char *buf) 703 + dasd_discipline_show(struct device *dev, struct device_attribute *attr, 704 + char *buf) 707 705 { 708 706 struct dasd_devmap *devmap; 709 707 char *dname;
+3 -3
drivers/s390/block/dasd_diag.c
··· 1 - /* 1 + /* 2 2 * File...........: linux/drivers/s390/block/dasd_diag.c 3 3 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com> 4 4 * Based on.......: linux/drivers/s390/block/mdisk.c ··· 336 336 337 337 private = (struct dasd_diag_private *) device->private; 338 338 if (private == NULL) { 339 - private = kmalloc(sizeof(struct dasd_diag_private),GFP_KERNEL); 339 + private = kzalloc(sizeof(struct dasd_diag_private),GFP_KERNEL); 340 340 if (private == NULL) { 341 341 DEV_MESSAGE(KERN_WARNING, device, "%s", 342 342 "memory allocation failed for private data"); ··· 527 527 datasize, device); 528 528 if (IS_ERR(cqr)) 529 529 return cqr; 530 - 530 + 531 531 dreq = (struct dasd_diag_req *) cqr->data; 532 532 dreq->block_count = count; 533 533 dbio = dreq->bio;
+1 -1
drivers/s390/block/dasd_diag.h
··· 1 - /* 1 + /* 2 2 * File...........: linux/drivers/s390/block/dasd_diag.h 3 3 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com> 4 4 * Based on.......: linux/drivers/s390/block/mdisk.h
+16 -36
drivers/s390/block/dasd_eckd.c
··· 1 - /* 1 + /* 2 2 * File...........: linux/drivers/s390/block/dasd_eckd.c 3 3 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com> 4 - * Horst Hummel <Horst.Hummel@de.ibm.com> 4 + * Horst Hummel <Horst.Hummel@de.ibm.com> 5 5 * Carsten Otte <Cotte@de.ibm.com> 6 6 * Martin Schwidefsky <schwidefsky@de.ibm.com> 7 7 * Bugreports.to..: <Linux390@de.ibm.com> ··· 210 210 211 211 /* switch on System Time Stamp - needed for XRC Support */ 212 212 if (private->rdc_data.facilities.XRC_supported) { 213 - 213 + 214 214 data->ga_extended |= 0x08; /* switch on 'Time Stamp Valid' */ 215 215 data->ga_extended |= 0x02; /* switch on 'Extended Parameter' */ 216 - 216 + 217 217 data->ep_sys_time = get_clock (); 218 - 218 + 219 219 de_ccw->count = sizeof (struct DE_eckd_data); 220 - de_ccw->flags |= CCW_FLAG_SLI; 220 + de_ccw->flags |= CCW_FLAG_SLI; 221 221 } 222 222 223 223 return; ··· 296 296 /* check for sequential prestage - enhance cylinder range */ 297 297 if (data->attributes.operation == DASD_SEQ_PRESTAGE || 298 298 data->attributes.operation == DASD_SEQ_ACCESS) { 299 - 300 - if (end.cyl + private->attrib.nr_cyl < geo.cyl) 299 + 300 + if (end.cyl + private->attrib.nr_cyl < geo.cyl) 301 301 end.cyl += private->attrib.nr_cyl; 302 302 else 303 303 end.cyl = (geo.cyl - 1); ··· 317 317 struct dasd_eckd_private *private; 318 318 int sector; 319 319 int dn, d; 320 - 320 + 321 321 private = (struct dasd_eckd_private *) device->private; 322 322 323 323 DBF_DEV_EVENT(DBF_INFO, device, ··· 554 554 555 555 private = (struct dasd_eckd_private *) device->private; 556 556 if (private == NULL) { 557 - private = kmalloc(sizeof(struct dasd_eckd_private), 557 + private = kzalloc(sizeof(struct dasd_eckd_private), 558 558 GFP_KERNEL | GFP_DMA); 559 559 if (private == NULL) { 560 560 DEV_MESSAGE(KERN_WARNING, device, "%s", ··· 562 562 "data"); 563 563 return -ENOMEM; 564 564 } 565 - memset(private, 0, sizeof(struct dasd_eckd_private)); 566 565 device->private = (void *) private; 567 566 } 568 567 /* Invalidate status of initial analysis. */ ··· 772 773 ((private->rdc_data.no_cyl * 773 774 private->rdc_data.trk_per_cyl * 774 775 blk_per_trk * (device->bp_block >> 9)) >> 1), 775 - ((blk_per_trk * device->bp_block) >> 10), 776 + ((blk_per_trk * device->bp_block) >> 10), 776 777 private->uses_cdl ? 777 778 "compatible disk layout" : "linux disk layout"); 778 779 ··· 969 970 if (i < 3) { 970 971 ect->kl = 4; 971 972 ect->dl = sizes_trk0[i] - 4; 972 - } 973 + } 973 974 } 974 975 if ((fdata->intensity & 0x08) && 975 976 fdata->start_unit == 1) { ··· 1269 1270 1270 1271 /* 1271 1272 * Release device ioctl. 1272 - * Buils a channel programm to releases a prior reserved 1273 + * Buils a channel programm to releases a prior reserved 1273 1274 * (see dasd_eckd_reserve) device. 1274 1275 */ 1275 1276 static int ··· 1309 1310 /* 1310 1311 * Reserve device ioctl. 1311 1312 * Options are set to 'synchronous wait for interrupt' and 1312 - * 'timeout the request'. This leads to a terminate IO if 1313 - * the interrupt is outstanding for a certain time. 1313 + * 'timeout the request'. This leads to a terminate IO if 1314 + * the interrupt is outstanding for a certain time. 1314 1315 */ 1315 1316 static int 1316 1317 dasd_eckd_reserve(struct dasd_device *device) ··· 1348 1349 1349 1350 /* 1350 1351 * Steal lock ioctl - unconditional reserve device. 1351 - * Buils a channel programm to break a device's reservation. 1352 + * Buils a channel programm to break a device's reservation. 1352 1353 * (unconditional reserve) 1353 1354 */ 1354 1355 static int ··· 1705 1706 1706 1707 module_init(dasd_eckd_init); 1707 1708 module_exit(dasd_eckd_cleanup); 1708 - 1709 - /* 1710 - * Overrides for Emacs so that we follow Linus's tabbing style. 1711 - * Emacs will notice this stuff at the end of the file and automatically 1712 - * adjust the settings for this buffer only. This must remain at the end 1713 - * of the file. 1714 - * --------------------------------------------------------------------------- 1715 - * Local variables: 1716 - * c-indent-level: 4 1717 - * c-brace-imaginary-offset: 0 1718 - * c-brace-offset: -4 1719 - * c-argdecl-indent: 4 1720 - * c-label-offset: -4 1721 - * c-continued-statement-offset: 4 1722 - * c-continued-brace-offset: 0 1723 - * indent-tabs-mode: 1 1724 - * tab-width: 8 1725 - * End: 1726 - */
+4 -4
drivers/s390/block/dasd_eckd.h
··· 1 - /* 1 + /* 2 2 * File...........: linux/drivers/s390/block/dasd_eckd.h 3 3 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com> 4 - * Horst Hummel <Horst.Hummel@de.ibm.com> 4 + * Horst Hummel <Horst.Hummel@de.ibm.com> 5 5 * Bugreports.to..: <Linux390@de.ibm.com> 6 6 * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000 7 7 * ··· 155 155 unsigned char reserved2:4; 156 156 unsigned char reserved3:8; 157 157 unsigned char defect_wr:1; 158 - unsigned char XRC_supported:1; 158 + unsigned char XRC_supported:1; 159 159 unsigned char reserved4:1; 160 160 unsigned char striping:1; 161 161 unsigned char reserved5:4; ··· 343 343 }; 344 344 345 345 /* 346 - * Perform Subsystem Function - Prepare for Read Subsystem Data 346 + * Perform Subsystem Function - Prepare for Read Subsystem Data 347 347 */ 348 348 struct dasd_psf_prssd_data { 349 349 unsigned char order;
+4 -4
drivers/s390/block/dasd_erp.c
··· 90 90 91 91 /* just retry - there is nothing to save ... I got no sense data.... */ 92 92 if (cqr->retries > 0) { 93 - DEV_MESSAGE (KERN_DEBUG, device, 93 + DEV_MESSAGE (KERN_DEBUG, device, 94 94 "default ERP called (%i retries left)", 95 95 cqr->retries); 96 96 cqr->lpm = LPM_ANYPATH; ··· 155 155 156 156 /* 157 157 * Print the hex dump of the memory used by a request. This includes 158 - * all error recovery ccws that have been chained in from of the 158 + * all error recovery ccws that have been chained in from of the 159 159 * real request. 160 160 */ 161 161 static inline void ··· 227 227 /* 228 228 * Log bytes arround failed CCW but only if we did 229 229 * not log the whole CP of the CCW is outside the 230 - * logged CP. 230 + * logged CP. 231 231 */ 232 232 if (cplength > 40 || 233 233 ((addr_t) cpa < (addr_t) lcqr->cpaddr && 234 234 (addr_t) cpa > (addr_t) (lcqr->cpaddr + cplength + 4))) { 235 - 235 + 236 236 DEV_MESSAGE(KERN_ERR, device, 237 237 "Failed CCW (%p) (area):", 238 238 (void *) (long) cpa);
+5 -24
drivers/s390/block/dasd_fba.c
··· 1 - /* 1 + /* 2 2 * File...........: linux/drivers/s390/block/dasd_fba.c 3 3 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com> 4 4 * Bugreports.to..: <Linux390@de.ibm.com> ··· 125 125 dasd_fba_check_characteristics(struct dasd_device *device) 126 126 { 127 127 struct dasd_fba_private *private; 128 - struct ccw_device *cdev = device->cdev; 128 + struct ccw_device *cdev = device->cdev; 129 129 void *rdc_data; 130 130 int rc; 131 131 132 132 private = (struct dasd_fba_private *) device->private; 133 133 if (private == NULL) { 134 - private = kmalloc(sizeof(struct dasd_fba_private), GFP_KERNEL); 134 + private = kzalloc(sizeof(struct dasd_fba_private), GFP_KERNEL); 135 135 if (private == NULL) { 136 136 DEV_MESSAGE(KERN_WARNING, device, "%s", 137 137 "memory allocation failed for private " ··· 204 204 if (irb->scsw.cstat == 0x00 && 205 205 irb->scsw.dstat == (DEV_STAT_CHN_END | DEV_STAT_DEV_END)) 206 206 return dasd_era_none; 207 - 207 + 208 208 cdev = device->cdev; 209 209 switch (cdev->id.dev_type) { 210 210 case 0x3370: ··· 539 539 * 8192 bytes (=2 pages). For 64 bit one dasd_mchunkt_t structure has 540 540 * 24 bytes, the struct dasd_ccw_req has 136 bytes and each block can use 541 541 * up to 16 bytes (8 for the ccw and 8 for the idal pointer). In 542 - * addition we have one define extent ccw + 16 bytes of data and a 542 + * addition we have one define extent ccw + 16 bytes of data and a 543 543 * locate record ccw for each block (stupid devices!) + 16 bytes of data. 544 544 * That makes: 545 545 * (8192 - 24 - 136 - 8 - 16) / 40 = 200.2 blocks at maximum. ··· 589 589 590 590 module_init(dasd_fba_init); 591 591 module_exit(dasd_fba_cleanup); 592 - 593 - /* 594 - * Overrides for Emacs so that we follow Linus's tabbing style. 595 - * Emacs will notice this stuff at the end of the file and automatically 596 - * adjust the settings for this buffer only. This must remain at the end 597 - * of the file. 598 - * --------------------------------------------------------------------------- 599 - * Local variables: 600 - * c-indent-level: 4 601 - * c-brace-imaginary-offset: 0 602 - * c-brace-offset: -4 603 - * c-argdecl-indent: 4 604 - * c-label-offset: -4 605 - * c-continued-statement-offset: 4 606 - * c-continued-brace-offset: 0 607 - * indent-tabs-mode: 1 608 - * tab-width: 8 609 - * End: 610 - */
+1 -1
drivers/s390/block/dasd_fba.h
··· 1 - /* 1 + /* 2 2 * File...........: linux/drivers/s390/block/dasd_fba.h 3 3 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com> 4 4 * Bugreports.to..: <Linux390@de.ibm.com>
+9 -28
drivers/s390/block/dasd_int.h
··· 1 - /* 1 + /* 2 2 * File...........: linux/drivers/s390/block/dasd_int.h 3 3 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com> 4 - * Horst Hummel <Horst.Hummel@de.ibm.com> 4 + * Horst Hummel <Horst.Hummel@de.ibm.com> 5 5 * Martin Schwidefsky <schwidefsky@de.ibm.com> 6 6 * Bugreports.to..: <Linux390@de.ibm.com> 7 7 * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000 ··· 186 186 void *callback_data; 187 187 }; 188 188 189 - /* 189 + /* 190 190 * dasd_ccw_req -> status can be: 191 191 */ 192 192 #define DASD_CQR_FILLED 0x00 /* request is ready to be processed */ ··· 248 248 /* 249 249 * Error recovery functions. examine_error() returns a value that 250 250 * indicates what to do for an error condition. If examine_error() 251 - * returns 'dasd_era_recover' erp_action() is called to create a 251 + * returns 'dasd_era_recover' erp_action() is called to create a 252 252 * special error recovery ccw. erp_postaction() is called after 253 253 * an error recovery ccw has finished its execution. dump_sense 254 254 * is called for every error condition to print the sense data ··· 302 302 spinlock_t request_queue_lock; 303 303 struct block_device *bdev; 304 304 unsigned int devindex; 305 - unsigned long blocks; /* size of volume in blocks */ 306 - unsigned int bp_block; /* bytes per block */ 307 - unsigned int s2b_shift; /* log2 (bp_block/512) */ 308 - unsigned long flags; /* per device flags */ 309 - unsigned short features; /* copy of devmap-features (read-only!) */ 305 + unsigned long blocks; /* size of volume in blocks */ 306 + unsigned int bp_block; /* bytes per block */ 307 + unsigned int s2b_shift; /* log2 (bp_block/512) */ 308 + unsigned long flags; /* per device flags */ 309 + unsigned short features; /* copy of devmap-features (read-only!) */ 310 310 311 311 /* extended error reporting stuff (eer) */ 312 312 struct dasd_ccw_req *eer_cqr; ··· 606 606 #endif /* __KERNEL__ */ 607 607 608 608 #endif /* DASD_H */ 609 - 610 - /* 611 - * Overrides for Emacs so that we follow Linus's tabbing style. 612 - * Emacs will notice this stuff at the end of the file and automatically 613 - * adjust the settings for this buffer only. This must remain at the end 614 - * of the file. 615 - * --------------------------------------------------------------------------- 616 - * Local variables: 617 - * c-indent-level: 4 618 - * c-brace-imaginary-offset: 0 619 - * c-brace-offset: -4 620 - * c-argdecl-indent: 4 621 - * c-label-offset: -4 622 - * c-continued-statement-offset: 4 623 - * c-continued-brace-offset: 0 624 - * indent-tabs-mode: 1 625 - * tab-width: 8 626 - * End: 627 - */
+6 -6
drivers/s390/block/dasd_ioctl.c
··· 90 90 dasd_ioctl_quiesce(struct dasd_device *device) 91 91 { 92 92 unsigned long flags; 93 - 93 + 94 94 if (!capable (CAP_SYS_ADMIN)) 95 95 return -EACCES; 96 - 96 + 97 97 DEV_MESSAGE (KERN_DEBUG, device, "%s", 98 98 "Quiesce IO on device"); 99 99 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); ··· 110 110 dasd_ioctl_resume(struct dasd_device *device) 111 111 { 112 112 unsigned long flags; 113 - 114 - if (!capable (CAP_SYS_ADMIN)) 113 + 114 + if (!capable (CAP_SYS_ADMIN)) 115 115 return -EACCES; 116 116 117 117 DEV_MESSAGE (KERN_DEBUG, device, "%s", 118 118 "resume IO on device"); 119 - 119 + 120 120 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); 121 121 device->stopped &= ~DASD_STOPPED_QUIESCE; 122 122 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); ··· 287 287 dasd_info->open_count = atomic_read(&device->open_count); 288 288 if (!device->bdev) 289 289 dasd_info->open_count++; 290 - 290 + 291 291 /* 292 292 * check if device is really formatted 293 293 * LDL / CDL was returned by 'fill_info'