aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorMiaohe Lin <[email protected]>2020-12-14 19:06:01 -0800
committerLinus Torvalds <[email protected]>2020-12-15 12:13:39 -0800
commite97af69950ffe8be4ee12b331924b8de8a17b73e (patch)
treefcadc256719e63d238ec5f15713f1a373db3438c /tools/perf/scripts/python/mem-phys-addr.py
parentd8aa24e04fb2a74dac0f7709da36950da5502be1 (diff)
mm/swap_state: skip meaningless swap cache readahead when ra_info.win == 0
swap_ra_info() may leave ra_info untouched in non_swap_entry() case as page table lock is not held. In this case, we have ra_info.nr_pte == 0 and it is meaningless to continue with swap cache readahead. Skip such ops by init ra_info.win = 1. [[email protected]: clean up struct init] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions