diff options
author | Zi Yan <ziy@nvidia.com> | 2020-09-26 06:19:14 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-09-26 19:33:57 +0200 |
commit | 6c5c7b9f3352728af490183f71d350bb658ffb75 (patch) | |
tree | 5442c016dc981a8c277fda37495f532c60a88c48 /mm/dmapool.c | |
parent | mm/gup: fix gup_fast with dynamic page table folding (diff) | |
download | linux-6c5c7b9f3352728af490183f71d350bb658ffb75.tar.xz linux-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 <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lkml.kernel.org/r/20200917210413.1462975-1-zi.yan@sent.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/dmapool.c')
0 files changed, 0 insertions, 0 deletions