From: Matthew Wilcox Date: Thu, 12 Mar 2009 18:20:29 +0000 (-0400) Subject: [SCSI] sd: Refactor sd_read_capacity() X-Git-Tag: v2.6.30-rc1~641^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0da205e01bc58cfad660659e3c901223d3596c57;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed