diff options
| author | Zhaoyu Liu <[email protected]> | 2024-07-31 21:31:01 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-09-01 20:25:57 -0700 |
| commit | 1d3440305e07c166c3752edb5e212bf324cf3252 (patch) | |
| tree | 9db53db5422309900438148af917b90221e2b544 /tools/perf/scripts/python | |
| parent | 17d5f38b33b66210c5a46af639c47fddfe1c5b4d (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 <[email protected]>
Cc: Domenico Cerasuolo <[email protected]>
Cc: Kairui Song <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions