diff options
| author | Alexey Romanov <[email protected]> | 2022-08-24 14:31:17 +0300 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-11 20:26:02 -0700 |
| commit | 641608f36244eb01028c2b30a961c7242144d96a (patch) | |
| tree | 0545a56dc525718416c0a4fd4c3e85af39b6fe68 /tools/perf/scripts/python | |
| parent | 3083da7bcf56a4922b996ea3551847488a43a8b6 (diff) | |
zram: don't retry compress incompressible page
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.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexey Romanov <[email protected]>
Signed-off-by: Dmitry Rokosov <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Cc: Alexey Romanov <[email protected]>
Cc: Dmitry Rokosov <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions