From: Nicholas Bellinger Date: Wed, 16 May 2012 23:05:26 +0000 (-0700) Subject: target: Fix bug in handling of FILEIO + block_device resize ops X-Git-Tag: v3.2.18~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc73d6c2c18e06f2b89401a12ad0a8976462901a;p=pandora-kernel.git target: Fix bug in handling of FILEIO + block_device resize ops commit cd9323fd68aee3c1c6b5b21e5746c9d1b586fb58 upstream. This patch fixes a bug in the handling of FILEIO w/ underlying block_device resize operations where the original fd_dev->fd_dev_size was incorrectly being used in fd_get_blocks() for READ_CAPACITY response payloads. This patch avoids using fd_dev->fd_dev_size for FILEIO devices with an underlying block_device, and instead changes fd_get_blocks() to get the sector count directly from i_size_read() as recommended by hch. Reported-by: Christoph Hellwig Signed-off-by: Nicholas Bellinger Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed