]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: disable compressed readahead for subpage
authorQu Wenruo <wqu@suse.com>
Mon, 26 Jul 2021 06:34:52 +0000 (14:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Aug 2021 11:19:04 +0000 (13:19 +0200)
commite2fa709a9347deea1db684b31e7c5bc3cd642bb5
tree6c1dea91479593ff246e6e14bc383eb1906523c8
parent9dffe839bc2fe8d457b3af3636f65a77da47a4cb
btrfs: disable compressed readahead for subpage

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: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c