summaryrefslogtreecommitdiff
path: root/include/target
diff options
context:
space:
mode:
authorChengming Zhou <zhouchengming@bytedance.com>2024-02-08 05:32:54 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-02-21 01:20:49 +0300
commit678e54d4bb9a4822f8ae99690ac131c5d490cdb1 (patch)
treeaf6cc569936790f96e940bed6bbdd9e43da6f8cc /include/target
parent1eb1e984379e2da04361763f66eec90dd75cf63e (diff)
downloadlinux-678e54d4bb9a4822f8ae99690ac131c5d490cdb1.tar.xz
mm/zswap: invalidate duplicate entry when !zswap_enabled
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: 42c06a0e8ebe ("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>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions