From: Sage Weil Date: Sat, 12 Jun 2010 22:31:14 +0000 (+0000) Subject: Btrfs: fix CLONE ioctl destination file size expansion to block boundary X-Git-Tag: v2.6.35-rc6~27^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5384d48f4e74edec3ca1887cb65e378a72af9a1;p=pandora-kernel.git Btrfs: fix CLONE ioctl destination file size expansion to block boundary The CLONE and CLONE_RANGE ioctls round up the range of extents being cloned to the block size when the range to clone extends to the end of file (this is always the case with CLONE). It was then using that offset when extending the destination file's i_size. Fix this by not setting i_size beyond the originally requested ending offset. This bug was introduced by a22285a6 (2.6.35-rc1). Signed-off-by: Sage Weil Signed-off-by: Chris Mason --- Reading git-diff-tree failed