Re: [PATCH 3/3] crypto: scompress: remove memcpy if sg_nents is 1
From: Herbert Xu
Date: Thu Jan 25 2024 - 04:58:15 EST
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@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt