On (22/10/24 14:00), Andrew Morton wrote: > It makes no sense for us to recompress the object if it will be in the > same size class. We don't get any memory gain anyway. But at the same > time, we get a CPU time overhead when inserting this object into zspage > and decompressing it afterwards. > > Link: https://lkml.kernel.org/r/20221024120942.13885-1-avromanov@xxxxxxxxxxxxxx > Signed-off-by: Alexey Romanov <avromanov@xxxxxxxxxxxxxx> > Cc: Minchan Kim <minchan@xxxxxxxxxx> > Cc: Nitin Gupta <ngupta@xxxxxxxxxx> > Cc: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx> > Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Reviewed-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>