diff options
| author | Sergey Senozhatsky <senozhatsky@chromium.org> | 2025-03-03 05:03:17 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-03-17 08:06:34 +0300 |
| commit | d7fdc5a620aeecf96074cf8c1b852539b12cb067 (patch) | |
| tree | 8c0b0fade6b90f802cee8b582bdac5556d2ae408 /include/linux/platform_data | |
| parent | f3b0c6c8996a8b4e717f71e13ebb7501841f0eb7 (diff) | |
| download | linux-d7fdc5a620aeecf96074cf8c1b852539b12cb067.tar.xz | |
zram: limit max recompress prio to num_active_comps
Use the actual number of algorithms zram was configure with instead of
theoretical limit of ZRAM_MAX_COMPS.
Also make sure that min prio is not above max prio.
Link: https://lkml.kernel.org/r/20250303022425.285971-9-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Hillf Danton <hdanton@sina.com>
Cc: Kairui Song <ryncsn@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Yosry Ahmed <yosry.ahmed@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
