Re: [PATCHv4 4/9] zram: Introduce recompress sysfs knob

From: Minchan Kim
Date: Fri Nov 04 2022 - 13:47:51 EST


On Fri, Nov 04, 2022 at 04:53:13PM +0900, Sergey Senozhatsky wrote:
> On (22/11/03 10:00), Minchan Kim wrote:
> > zram->table[index].flags
> >
> > If we squeeze the algorithm index, we could work like this
> > without ZRAM_RECOMP_SKIP.
>
> Something like this?
>
> Allocate two ->flags bits for priority and one bit for RECOMP_SKIP.
> Two priority bits let us to have 3 alternative algorithms (01 10 11)
> plus one default (00). So 4 in total.

Looks good!