Re: [PATCH 3/3] crypto: scompress: remove memcpy if sg_nents is 1

Herbert Xu
2024-01-25T09:58:04Z

On Wed, Jan 03, 2024 at 10:50:06PM +1300, Barry Song wrote:
>
> + if (dst != scratch->dst)
> + kunmap_local(dst);

This is missing a flush_dcache_page.

It may not matter for zswap, but this is API code and needs to
work for every single case.

Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt