[PATCH 0/7] zram: a set of trivial code cleanups and tweaks

From: Sergey Senozhatsky

Date: Tue Dec 01 2026 - 04:07:21 EST


Trivial cleanups, like allocating memory only after params
validation succeeds, dropping some goto labels, etc. Most
of these were spotted during recent zcomp redesign work, but
were not critical to the redesign itself, so they are split
out.

Sergey Senozhatsky (7):
zram: allocate comp only if it is supported
zram: validate level before allocation in zstd_setup_params()
zram: defer wb_ctl allocation in writeback_store()
zram: remove out label in recompress_store()
zram: create debugfs dir after register_blkdev() in zram_init()
zram: respect 80-cols limit in zram_meta_alloc()
zram: rename mark_idle() to mark_slots_idle()

drivers/block/zram/backend_zstd.c | 24 ++++++-------
drivers/block/zram/zcomp.c | 12 +++----
drivers/block/zram/zram_drv.c | 57 ++++++++++++++-----------------
3 files changed, 42 insertions(+), 51 deletions(-)

--
2.56.1.839.g22a8290db9-goog