[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240510070010.GA950946@google.com>
Date: Fri, 10 May 2024 16:00:10 +0900
From: Sergey Senozhatsky <senozhatsky@...omium.org>
To: Sergey Senozhatsky <senozhatsky@...omium.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Minchan Kim <minchan@...nel.org>, linux-kernel@...r.kernel.org,
linux-block@...r.kernel.org
Subject: Re: [PATCHv3 03/19] zram: add lz4 compression backend support
On (24/05/08 16:41), Sergey Senozhatsky wrote:
> +static int lz4_compress(void *ctx, const unsigned char *src,
> + unsigned char *dst, size_t *dst_len)
> +{
> + int ret;
> +
> + ret = LZ4_compress_default(src, dst, PAGE_SIZE, *dst_len, ctx);
> + if (!ret)
> + return -EINVAL;
> + *dst_len = ret;
> + return 0;
> +}
Apparently lz4 supports compression level tunable, which is
"acceleration". I'll slightly rewrite lz4/lz4hc backends in v4.
Powered by blists - more mailing lists