diff --git a/module/zfs/zio.c b/module/zfs/zio.c index 5cc9ab7901d2..d7e2f2adbfa5 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -1687,7 +1687,8 @@ zio_get_compression_max_size(uint64_t gcd_alloc, uint64_t min_alloc, d_len = d_len - d_len % gcd_alloc; if (d_len < min_alloc) - return (BPE_PAYLOAD_SIZE); + /* Add n bytes for ZLE or will fail fast earlier */ + return (BPE_PAYLOAD_SIZE + 64); return (d_len); }