Re: [PATCH] mm/zswap: export zswap API to modules
From: Christoph Hellwig
Date: Mon Jun 23 2025 - 01:12:06 EST
On Fri, Jun 20, 2025 at 09:35:52PM +0200, Vitaly Wool wrote:
> There is no reason to not let modules use zswap capabilies to
> densely store unused pages in RAM. This will allow to remove some
> homebrew solutions for e.g. GPU drivers in favor of plainly using
> zswap pool.
Well, right now there very much is - there is no user of them. And any
such user should first have a careful review on the list if they really
should use zswap directly because that feels like a layering violation.
(Maybe it's not, but without a proper review that is impossible to say)
And this was the nice Monday morning after a long weekend reply. The
short form is "don't add exports without a user", and everyone should
really know that.