mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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 <rob.norris@klarasystems.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user