Messages in this thread | | | Date | Thu, 25 Aug 2022 16:58:29 +0900 | From | Sergey Senozhatsky <> | Subject | Re: [PATCH v2] zram: don't retry compress incompressible page |
| |
On (22/08/24 14:31), Alexey Romanov wrote: > It doesn't make sense for us to retry to compress an uncompressible > page (comp_len == PAGE_SIZE) in zsmalloc slowpath, because we will > be storing it uncompressed anyway. We can avoid wasting time on > another compression attempt. It is enough to take lock > (zcomp_stream_get) and execute the code below. > > Signed-off-by: Alexey Romanov <avromanov@sberdevices.ru> > Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
| |