]> www.infradead.org Git - users/jedix/linux-maple.git/commit
zram: do not mark idle slots that cannot be idle
authorSergey Senozhatsky <senozhatsky@chromium.org>
Tue, 17 Sep 2024 02:09:10 +0000 (11:09 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:28:43 +0000 (21:28 -0700)
commit2cd44efa09c7ae025ef13405d59040c7b41c51c8
tree1ef52dfb122968a9b3ea52fc62810a8464387976
parent683485d9b0b943b4d150964bdb940ef499d138b2
zram: do not mark idle slots that cannot be idle

ZRAM_SAME slots cannot be post-processed (writeback or recompress) so do
not mark them ZRAM_IDLE.  Same with ZRAM_WB slots, they cannot be
ZRAM_IDLE because they are not in zsmalloc pool anymore.

Link: https://lkml.kernel.org/r/20240917021020.883356-6-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/zram/zram_drv.c