diff options
author | Rob Norris <[email protected]> | 2024-07-04 14:48:38 +1000 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2024-08-22 16:22:24 -0700 |
commit | f62e6e1f985b5cc197940dcd2dc839aab0708ca2 (patch) | |
tree | 3579464a2971d651e4398b24c9849f6d886ba5d9 /include | |
parent | d3c12383c95cf7988ac00234a42a4da7989c9034 (diff) |
compress: change zio_compress API to use ABDs
This commit changes the frontend zio_compress_data and
zio_decompress_data APIs to take ABD points instead of buffer pointers.
All callers are updated to match. Any that already have an appropriate
ABD nearby now use it directly, while at the rest we create an one.
Internally, the ABDs are passed through to the provider directly.
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Signed-off-by: Rob Norris <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/zio_compress.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/zio_compress.h b/include/sys/zio_compress.h index d41b5dfd4..31602039a 100644 --- a/include/sys/zio_compress.h +++ b/include/sys/zio_compress.h @@ -173,9 +173,9 @@ extern int zfs_lz4_decompress(abd_t *src, abd_t *dst, size_t s_len, /* * Compress and decompress data if necessary. */ -extern size_t zio_compress_data(enum zio_compress c, abd_t *src, void **dst, +extern size_t zio_compress_data(enum zio_compress c, abd_t *src, abd_t **dst, size_t s_len, uint8_t level); -extern int zio_decompress_data(enum zio_compress c, abd_t *src, void *dst, +extern int zio_decompress_data(enum zio_compress c, abd_t *src, abd_t *abd, size_t s_len, size_t d_len, uint8_t *level); extern int zio_compress_to_feature(enum zio_compress comp); |