diff options
author | Qu Wenruo <wqu@suse.com> | 2025-09-08 18:36:37 +0930 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-09-23 08:49:25 +0200 |
commit | e88cb48e6709d73fe9f82f2b56a43ac9ba2a1fe2 (patch) | |
tree | 5d2f9b90207a1bae29c74dd0d00bd970f62d503b /fs/btrfs/dev-replace.c | |
parent | 4fd188a4fe5877a95e4812617a6c6ae66644427b (diff) |
btrfs: prepare zlib to support bs > ps cases
This involves converting the following functions to use correct folio
sizes/shifts:
- zlib_compress_folios()
- zlib_decompress_bio()
There is a special handling for s390 hardware acceleration.
With bs > ps cases, we can go with 16K block size on s390 (which uses
fixed 4K page size).
In that case we do not need to do the buffer copy as our folio is large
enough for hardware acceleration.
So factor out the s390 specific and folio size check into a helper,
need_special_buffer().
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions