ZLE compression: don't use BPE_PAYLOAD_SIZE

ZLE compressor needs additional bytes to process
d_len argument efficiently.
Don't use BPE_PAYLOAD_SIZE as d_len with it
before we rework zle compressor somehow.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: George Melikov <mail@gmelikov.ru>
Closes #9416
This commit is contained in:
George Melikov
2024-05-29 23:50:25 +03:00
committed by Brian Behlendorf
parent 522f2629c8
commit b32d48a625
3 changed files with 13 additions and 7 deletions
+2 -2
View File
@@ -604,8 +604,8 @@ extern int zio_alloc_zil(spa_t *spa, objset_t *os, uint64_t txg,
extern void zio_flush(zio_t *zio, vdev_t *vd);
extern void zio_shrink(zio_t *zio, uint64_t size);
extern size_t zio_get_compression_max_size(uint64_t gcd_alloc,
uint64_t min_alloc, size_t s_len);
extern size_t zio_get_compression_max_size(enum zio_compress compress,
uint64_t gcd_alloc, uint64_t min_alloc, size_t s_len);
extern int zio_wait(zio_t *zio);
extern void zio_nowait(zio_t *zio);
extern void zio_execute(void *zio);