Re: [PATCH v2 2/2] mm: zswap: remove unnecessary trees cleanups in zswap_swapoff()

From: Yosry Ahmed
Date: Tue Jan 23 2024 - 23:53:17 EST


On Tue, Jan 23, 2024 at 8:51 PM Yosry Ahmed <yosryahmed@xxxxxxxxxx> wrote:
>
> During swapoff, try_to_unuse() makes sure that zswap_invalidate() is
> called for all swap entries before zswap_swapoff() is called. This means
> that all zswap entries should already be removed from the tree. Simplify
> zswap_swapoff() by removing the trees cleanup code, and leave an
> assertion in its place.
>
> Signed-off-by: Yosry Ahmed <yosryahmed@xxxxxxxxxx>

Johannes, Nhat, I didn't carry the Acks forward after the rebase as
the code changed significantly.