Messages in this thread | | | Date | Fri, 4 Nov 2022 10:47:23 -0700 | From | Minchan Kim <> | Subject | Re: [PATCHv4 4/9] zram: Introduce recompress sysfs knob |
| |
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!
| |