Re: [PATCH 0/3] mm/zram: route block swap I/O through swap_ops

From: Jianyue Wu

Date: Tue Jun 16 2026 - 23:38:28 EST


Hi Christoph,

Thanks for the feedback.

> I fear this is going entirely in the wrong direction.
OK. I was trying to build on your swap_iocb / swap_ops rework
for the zram swap path, but I take your point that compressed swap can
be handled more nicely.

> Yes, we have to keep zram around as a legacy interface for now,
> but the right place to deal with compressed swap is in the core.
I agree compressed swap belongs in the core is better, so not only ram,
but also the block layer can use it.

Before I rework or drop the RFC, could you outline how you see that
core-side model working? In particular:
- How should a compressed backend like zram or future block device
plug into swap_iocb / swap_ops?
- What role do you expect zram to keep while the legacy block interface
remains: current block swap only, or something else?

I am open to reworking the series toward a core-based approach once
the intended direction is clearer.

Thanks,
Jianyue