diff options
author | Yosry Ahmed <[email protected]> | 2024-01-24 04:51:12 +0000 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-02-22 10:24:39 -0800 |
commit | 83e68f25decdc8d133dbfedd18b93f5267430049 (patch) | |
tree | d724a23f790ad35341791a0a375d442af49bffff /include/linux/fpga/fpga-mgr.h | |
parent | 64cf264c8fefd013208904e2d1b5ba4ee26ca079 (diff) |
mm: zswap: remove unnecessary trees cleanups in zswap_swapoff()
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.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Yosry Ahmed <[email protected]>
Reviewed-by: Chengming Zhou <[email protected]>
Cc: Chris Li <[email protected]>
Cc: "Huang, Ying" <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Nhat Pham <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions