• Qu Wenruo's avatar
    btrfs: disable compressed readahead for subpage · ca62e85d
    Qu Wenruo authored
    
    
    For current subpage support, we only support 64K page size with 4K
    sector size.
    
    This makes compressed readahead less effective, as maximum compressed
    extent size is only 128K, 2x the page size.
    
    On the other hand, the function add_ra_bio_pages() is still assuming
    sectorsize == PAGE_SIZE, and code change may affect 4K page size
    systems.
    
    So for now, let's disable subpage compressed readahead for now.
    Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    ca62e85d
compression.c 45 KB