[PATCH 35/45] arch/s390: Skip hugetlb vmas in thp_split_mm
From: Oscar Salvador
Date: Thu Jul 04 2024 - 00:39:41 EST
Skip hugetlb vmas as we are not interested in those.
Signed-off-by: Oscar Salvador <osalvador@xxxxxxx>
---
arch/s390/mm/gmap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/s390/mm/gmap.c b/arch/s390/mm/gmap.c
index e1d098dc7f07..580e4ab6f018 100644
--- a/arch/s390/mm/gmap.c
+++ b/arch/s390/mm/gmap.c
@@ -2538,6 +2538,8 @@ static inline void thp_split_mm(struct mm_struct *mm)
VMA_ITERATOR(vmi, mm, 0);
for_each_vma(vmi, vma) {
+ if (is_vm_hugetlb_page(vma))
+ continue;
vm_flags_mod(vma, VM_NOHUGEPAGE, VM_HUGEPAGE);
walk_page_vma(vma, &thp_split_walk_ops, NULL);
}
--
2.26.2