From: Josef Bacik Date: Fri, 5 Jul 2013 17:52:51 +0000 (-0400) Subject: Btrfs: do not offset physical if we're compressed X-Git-Tag: v3.11-rc5~5^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b76bb70136375c32d3b0bbbe2ebef738913d5b90;p=pandora-kernel.git Btrfs: do not offset physical if we're compressed xfstest btrfs/276 was freaking out on slower boxes partly because fiemap was offsetting the physical based on the extent offset. This is perfectly fine with uncompressed extents, however the extent offset is into the uncompressed area, not the compressed. So we can return a physical value that isn't at all within the area we have allocated on disk. Fix this by returning the start of the extent if it is compressed no matter what the offset. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed