diff options
| author | NeilBrown <[email protected]> | 2022-05-09 18:20:49 -0700 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-05-09 18:20:49 -0700 |
| commit | a1a0dfd56f97738c1974976309bbf38bb5a21132 (patch) | |
| tree | 2f4aa69a0ba85c406ada1759cd57d9695d0417d9 /tools/perf/scripts/python/bin | |
| parent | 2282679fb20bf036a714ed49fadd0230c278a203 (diff) | |
mm: handle THP in swap_*page_fs()
Pages passed to swap_readpage()/swap_writepage() are not necessarily all
the same size - there may be transparent-huge-pages involves.
The BIO paths of swap_*page() handle this correctly, but the SWP_FS_OPS
path does not.
So we need to use thp_size() to find the size, not just assume PAGE_SIZE,
and we need to track the total length of the request, not just assume it
is "page * PAGE_SIZE".
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: NeilBrown <[email protected]>
Reported-by: Miaohe Lin <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: David Howells <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Trond Myklebust <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions