summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSergey Senozhatsky <senozhatsky@chromium.org>2025-03-03 05:03:17 +0300
committerAndrew Morton <akpm@linux-foundation.org>2025-03-17 08:06:34 +0300
commitd7fdc5a620aeecf96074cf8c1b852539b12cb067 (patch)
tree8c0b0fade6b90f802cee8b582bdac5556d2ae408 /include/linux
parentf3b0c6c8996a8b4e717f71e13ebb7501841f0eb7 (diff)
downloadlinux-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')
0 files changed, 0 insertions, 0 deletions