Re: [PATCH RFC 4/7] zram: Introduce recompress sysfs knob

From: Sergey Senozhatsky
Date: Mon Sep 12 2022 - 06:05:49 EST


On (22/09/05 17:23), Sergey Senozhatsky wrote:
[..]
> + /*
> + * Either a compression error or we failed to compressed the object
> + * in a way that will save us memory. Mark object as "recompressed"
> + * if it's huge, so that we don't try to recompress it again. Ideally
> + * we want to set some bit for all such objects, but we for now do so
> + * only for huge ones (we are out of bits in flags on 32-bit systems).
> + */

This limitation goes away once we move ZRAM_FLAG_SHIFT to
more reasonable value. I can introduce one more pageflag
that will be set for objects that cannot be compressed by
either compression algorithm.