Skip to content
  • Yan Zheng's avatar
    Btrfs: Fix csum error for compressed data · ff5b7ee3
    Yan Zheng authored
    
    
    The decompress code doesn't take the logical offset in extent
    pointer into account. If the logical offset isn't zero, data
    will be decompressed into wrong pages.
    
    The solution used here is to record the starting offset of the extent
    in the file separately from the logical start of the extent_map struct.
    This allows us to avoid problems inserting overlapping extents.
    
    Signed-off-by: default avatarYan Zheng <zheng.yan@oracle.com>
    ff5b7ee3