summaryrefslogtreecommitdiff
path: root/mm/zswap.c
diff options
context:
space:
mode:
authorZhaoyu Liu <liuzhaoyu.zackary@bytedance.com>2024-07-31 21:31:01 +0800
committerAndrew Morton <akpm@linux-foundation.org>2024-09-01 20:25:57 -0700
commit1d3440305e07c166c3752edb5e212bf324cf3252 (patch)
tree9db53db5422309900438148af917b90221e2b544 /mm/zswap.c
parent17d5f38b33b66210c5a46af639c47fddfe1c5b4d (diff)
mm: swap: allocate folio only first time in __read_swap_cache_async()
It should be checked by filemap_get_folio() if SWAP_HAS_CACHE was marked while reading a share swap page. It would re-allocate a folio if the swap cache was not ready now. We save the new folio to avoid page allocating again. Link: https://lkml.kernel.org/r/20240731133101.GA2096752@bytedance Signed-off-by: Zhaoyu Liu <liuzhaoyu.zackary@bytedance.com> Cc: Domenico Cerasuolo <cerasuolodomenico@gmail.com> Cc: Kairui Song <kasong@tencent.com> Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/zswap.c')
0 files changed, 0 insertions, 0 deletions