[PATCH v6] erofs: support deflate decompress by using Intel QAT

Gao Xiang hsiangkao at linux.alibaba.com
Thu May 22 18:34:27 AEST 2025



On 2025/5/22 16:14, Bo Liu wrote:

...

> +
> +static int __z_erofs_crypto_decompress(struct z_erofs_decompress_req *rq,
> +				struct crypto_acomp *tfm)
> +{
> +	struct sg_table st_src, st_dst;
> +	struct acomp_req *req;
> +	struct crypto_wait wait;
> +	u8 *headpage;
> +	int ret;
> +
> +	headpage = kmap_local_page(*rq->in);
> +	ret = z_erofs_fixup_insize(rq, headpage + rq->pageofs_in,
> +				min_t(unsigned int, rq->inputsize,
> +							rq->sb->s_blocksize - rq->pageofs_in));

Please fix the alignment of this line.

Thanks,
Gao Xiang


More information about the Linux-erofs mailing list