Re: [PATCH v5 2/5] Revert "frontswap: simplify frontswap_register_ops"
From: Christoph Hellwig
Date: Tue Sep 20 2022 - 08:13:25 EST
On Thu, Sep 15, 2022 at 11:50:00AM +0800, Liu Shixin wrote:
> This reverts commit f328c1d16e4c764992895ac9c9425cea861b2ca0.
>
> Since we are supported to delay zswap initializaton, we need to invoke
> ops->init for the swap device which is already online when register
> backend.
Why do we "have" to do it. Retroactively supporting functionality on
previously enabled swap devices seems rather odd, and the amount of
cruft added for it here absolutely does not seem to be worth it.