diskio: when falling back EDD->CHS make sure to get the offset right
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 16 Jul 2010 23:24:08 +0000 (16:24 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 16 Jul 2010 23:24:08 +0000 (16:24 -0700)
commit21af78ff343844210a2241daa1b040c9d3c72178
tree844885884e3681cb534fba4371c1ee40f8a77e01
parentbf59f446888ae29c7e57902972e0994556999417
diskio: when falling back EDD->CHS make sure to get the offset right

When we decide to go from EDD to CHS, make sure we convert from
absolute back to a partition offset.  The cylinder check should still
be on the absolute value, however.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/fs/diskio.c