|
@@ -530,7 +530,12 @@ static int __collapse_huge_page_isolate(struct vm_area_struct *vma,
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
|
|
|
|
- VM_BUG_ON_PAGE(PageCompound(page), page);
|
|
|
|
|
|
+ /* TODO: teach khugepaged to collapse THP mapped with pte */
|
|
|
|
+ if (PageCompound(page)) {
|
|
|
|
+ result = SCAN_PAGE_COMPOUND;
|
|
|
|
+ goto out;
|
|
|
|
+ }
|
|
|
|
+
|
|
VM_BUG_ON_PAGE(!PageAnon(page), page);
|
|
VM_BUG_ON_PAGE(!PageAnon(page), page);
|
|
|
|
|
|
/*
|
|
/*
|