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.