Files
twx-linux/mm
Chengming Zhou dca1699502 mm/zswap: invalidate duplicate entry when !zswap_enabled
commit 678e54d4bb upstream.

We have to invalidate any duplicate entry even when !zswap_enabled since
zswap can be disabled anytime.  If the folio store success before, then
got dirtied again but zswap disabled, we won't invalidate the old
duplicate entry in the zswap_store().  So later lru writeback may
overwrite the new data in swapfile.

Link: https://lkml.kernel.org/r/20240208023254.3873823-1-chengming.zhou@linux.dev
Fixes: 42c06a0e8e ("mm: kill frontswap")
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Nhat Pham <nphamcs@gmail.com>
Cc: Yosry Ahmed <yosryahmed@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-01 13:42:00 +01:00
..
2023-07-24 18:04:30 -04:00
2023-11-15 15:30:09 -08:00
2023-10-25 16:47:13 -07:00
2023-10-04 10:32:19 -07:00
2023-07-18 10:07:47 +02:00
2023-10-25 16:47:11 -07:00
2023-10-25 16:47:10 -07:00