diff options
| author | Miaohe Lin <[email protected]> | 2022-08-30 20:36:02 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-26 19:46:04 -0700 |
| commit | 36537a67d3561bfe2b3654161d6c9008fff84d43 (patch) | |
| tree | e934fba765591216b9d95fbde6f99f2d9e728488 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 21c9e90ab9a4c991d21dd15cc5163c99a885d4a8 (diff) | |
mm, hwpoison: avoid unneeded page_mapped_in_vma() overhead in collect_procs_anon()
If vma->vm_mm != t->mm, there's no need to call page_mapped_in_vma() as
add_to_kill() won't be called in this case. Move up the mm check to avoid
possible unneeded calling to page_mapped_in_vma().
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Acked-by: Naoya Horiguchi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions