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.4~15^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd9323fd68aee3c1c6b5b21e5746c9d1b586fb58;p=pandora-kernel.git target: Fix bug in handling of FILEIO + block_device resize ops 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 Cc: Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed