diff options
| author | Li Zetao <[email protected]> | 2024-08-28 18:29:06 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-09-10 14:51:21 +0000 |
| commit | b70f3a45464b012feb8e86f15f37e0c4b2f69fe1 (patch) | |
| tree | 589b1fee024e7c3f22a3adcc7500223979469831 /fs/btrfs/compression.h | |
| parent | btrfs: convert lzo_decompress() to take a folio (diff) | |
| download | kernel-b70f3a45464b012feb8e86f15f37e0c4b2f69fe1.tar.gz kernel-b70f3a45464b012feb8e86f15f37e0c4b2f69fe1.zip | |
btrfs: convert zstd_decompress() to take a folio
The old page API is being gradually replaced and converted to use folio
to improve code readability and avoid repeated conversion between page
and folio. And memcpy_to_page() can be replaced with memcpy_to_folio().
But there is no memzero_folio(), but it can be replaced equivalently by
folio_zero_range().
Signed-off-by: Li Zetao <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.h')
| -rw-r--r-- | fs/btrfs/compression.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.h b/fs/btrfs/compression.h index 4b5a7ba54815..d2453cf28eef 100644 --- a/fs/btrfs/compression.h +++ b/fs/btrfs/compression.h @@ -183,7 +183,7 @@ int zstd_compress_folios(struct list_head *ws, struct address_space *mapping, unsigned long *total_in, unsigned long *total_out); int zstd_decompress_bio(struct list_head *ws, struct compressed_bio *cb); int zstd_decompress(struct list_head *ws, const u8 *data_in, - struct page *dest_page, unsigned long dest_pgoff, size_t srclen, + struct folio *dest_folio, unsigned long dest_pgoff, size_t srclen, size_t destlen); void zstd_init_workspace_manager(void); void zstd_cleanup_workspace_manager(void); |
