diff options
author | Qu Wenruo <wqu@suse.com> | 2025-09-08 16:28:16 +0930 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-09-23 08:49:24 +0200 |
commit | a6452b85b3e55aafceb84c25784f25f63ba620b0 (patch) | |
tree | 23f616ce7223dd13f6d678ef806c3f1b9dddb4d9 /fs/btrfs/dev-replace.c | |
parent | c2ffb1ec1a7cfc754c1d2fe66d317f0aa4c0f1e6 (diff) |
btrfs: prepare zstd to support bs > ps cases
This involves converting the following functions to use proper folio
sizes/shifts:
- zstd_compress_folios()
- zstd_decompress_bio()
The function zstd_decompress() is already using block size correctly
without using page size, thus it needs no modification.
And since zstd compression is calling kmap_local_folio(), the existing
code cannot handle large folios with HIGHMEM, as kmap_local_folio()
requires us to handle one page range each time.
I do not really think it's worth to spend time on some feature that will
be deprecated eventually. So here just add an extra explicit rejection
for bs > ps with HIGHMEM feature enabled kernels.
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