summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.h
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2009-03-12 19:20:29 +0100
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-14 14:42:56 +0100
commit0da205e01bc58cfad660659e3c901223d3596c57 (patch)
tree3f199f3badd8148dd035f058580eb8870b1a0fec /drivers/scsi/sd.h
parent[SCSI] mpt2sas v00.100.11.15 (diff)
downloadlinux-0da205e01bc58cfad660659e3c901223d3596c57.tar.xz
linux-0da205e01bc58cfad660659e3c901223d3596c57.zip
[SCSI] sd: Refactor sd_read_capacity()
The sd_read_capacity() function was about 180 lines long and included a backwards goto and a tricky state variable. Splitting out read_capacity_10() and read_capacity_16() (about 50 lines each) reduces sd_read_capacity to about 100 lines and gets rid of the backwards goto and the state variable. I've tried to avoid any behaviour change with this patch. [jejb: upped transfer request to standard recommended 32 for RC16] Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sd.h')
0 files changed, 0 insertions, 0 deletions