diff options
| author | Huang Ying <[email protected]> | 2022-08-17 16:14:04 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-26 19:46:06 -0700 |
| commit | 5fc30916b5cda697a7eb8f1167c38c27100a793a (patch) | |
| tree | e306dc8d33ba018743b3a0de8e6b86e4cb1711f8 /tools/perf/scripts/python/netdev-times.py | |
| parent | fbed53b47770b978be290cec0f4f22577766c12d (diff) | |
migrate_pages(): fix failure counting for THP subpages retrying
If THP is failed to be migrated for -ENOSYS and -ENOMEM, the THP will be
split into thp_split_pages, and after other pages are migrated, pages in
thp_split_pages will be migrated with no_subpage_counting == true, because
its failure have been counted already. If some pages in thp_split_pages
are retried during migration, we should not count their failure if
no_subpage_counting == true too. This is done this patch to fix the
failure counting for THP subpages retrying.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 5984fabb6e82 ("mm: move_pages: report the number of non-attempted pages")
Signed-off-by: "Huang, Ying" <[email protected]>
Reviewed-by: Baolin Wang <[email protected]>
Reviewed-by: Oscar Salvador <[email protected]>
Cc: Zi Yan <[email protected]>
Cc: Yang Shi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions