diff options
| author | Zi Yan <[email protected]> | 2020-09-26 04:19:14 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-09-26 17:33:57 +0000 |
| commit | 6c5c7b9f3352728af490183f71d350bb658ffb75 (patch) | |
| tree | 5442c016dc981a8c277fda37495f532c60a88c48 /lib/string.c | |
| parent | mm/gup: fix gup_fast with dynamic page table folding (diff) | |
| download | kernel-6c5c7b9f3352728af490183f71d350bb658ffb75.tar.gz kernel-6c5c7b9f3352728af490183f71d350bb658ffb75.zip | |
mm/migrate: correct thp migration stats
PageTransHuge returns true for both thp and hugetlb, so thp stats was
counting both thp and hugetlb migrations. Exclude hugetlb migration by
setting is_thp variable right.
Clean up thp handling code too when we are there.
Fixes: 1a5bae25e3cf ("mm/vmstat: add events for THP migration without split")
Signed-off-by: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Daniel Jordan <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
