• Qu Wenruo's avatar
    btrfs: introduce a bitmap based csum range search function · 97e38239
    Qu Wenruo authored
    Although we have an existing function, btrfs_lookup_csums_range(), to
    find all data checksums for a range, it's based on a btrfs_ordered_sum
    list.
    
    For the incoming RAID56 data checksum verification at RMW time, we don't
    want to waste time by allocating temporary memory.
    
    So this patch will introduce a new helper, btrfs_lookup_csums_bitmap().
    It will use bitmap based result, which will be a perfect fit for later
    RAID56 usage.
    Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    97e38239
tree-log.c 210 KB