Re: [PATCHv3 03/19] zram: add lz4 compression backend support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux