Re: [PATCHv4 2/9] zram: Add recompression algorithm sysfs knob

From: Sergey Senozhatsky
Date: Thu Nov 03 2022 - 00:09:59 EST


On (22/11/03 12:05), Sergey Senozhatsky wrote:
> What is the use case for removal of a secondary algorithm?
>
> > My point is that we don't need to implement it atm but makes the
> > interface to open the possibility for future extension.
> >
> > What do you think?
>
> So, as far as I understand, we don't have reason to add remove_recomp_algo
> right now. And existing recomp_algo does not enforce any particular format,
> it can be extended. Right now we accept "$name" but can do something like
> "$name:$priority".

Or with keywords:

name=STRING priority=INT

and the only legal priority for now is 1.