diskio: sanitize the reduced transfer sizes
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 13 May 2010 00:28:51 +0000 (17:28 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 13 May 2010 00:28:51 +0000 (17:28 -0700)
commitedd10c1dc8a724aa113a0af88cf5c04a8fe2155f
tree39c4cbece0c5ef7dd4feb3c9242f6d7db20efdb6
parente396d6cb00469cfa5a52ad899d0f0c9f9a46997d
diskio: sanitize the reduced transfer sizes

Simply shift the size left by 1 when computing the transfer sizes.
This will always end with the values ..., 1, 0 as it should.

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