• J
    Btrfs: do not offset physical if we're compressed · b76bb701
    Josef Bacik 提交于
    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: NJosef Bacik <jbacik@fusionio.com>
    Signed-off-by: NChris Mason <chris.mason@fusionio.com>
    b76bb701
extent_io.c 127.8 KB