zram: introduce custom comp backends API
authorSergey Senozhatsky <senozhatsky@chromium.org>
Mon, 2 Sep 2024 10:55:52 +0000 (19:55 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 9 Sep 2024 23:39:07 +0000 (16:39 -0700)
commit917a59e81c342f47a45be8af7792dae64d317984
treefa1bea01543fe791b1c5441d86a0afb2a56e1037
parentf3c11cf5cae044668f888a50abb37b29600ca197
zram: introduce custom comp backends API

Moving to custom backends implementation gives us ability to have our own
minimalistic and extendable API, and algorithms tunings becomes possible.

The list of compression backends is empty at this point, we will add
backends in the followup patches.

Link: https://lkml.kernel.org/r/20240902105656.1383858-5-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nick Terrell <terrelln@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/admin-guide/blockdev/zram.rst
drivers/block/zram/Kconfig
drivers/block/zram/zcomp.c
drivers/block/zram/zcomp.h
drivers/block/zram/zram_drv.c