Re: [RFC PATCH 7/7] mm: zswap: Use acomp virtual address interface

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

 



On Wed, Mar 05, 2025 at 02:58:17PM +0900, Sergey Senozhatsky wrote:
>
> Hmm at a price of diverging code bases?  Is it really worth it?

It's still the same function just with different iterators, one
being trivial one being SG-based.

> And it's not guaranteed that all algorithms will switch over to SG,
> so the linerisation will stay around.

Any algorithm could be converted over to handle non-linear data,
if people cared enough to do it.

If nobody cares then sure you can just do the copy.  The point
is that the copy needs to be in the API layer and not further up,
otherwise you're forcing it on all algorithms, even if it's capable
of handling non-linear input.

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




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux