Re: [PATCH v5 2/5] Revert "frontswap: simplify frontswap_register_ops"
From: Christoph Hellwig
Date: Tue Sep 27 2022 - 08:31:42 EST
On Tue, Sep 27, 2022 at 07:12:58PM +0800, Liu Shixin wrote:
> If not do this, while some user enable swap device first and then enable zswap,
> zswap will not take effect. The user need to re-enable the swap device which is
> inconvenient.
So load the module before swapping on, just like you'd load any driver
before you expect to use it.