]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/memory.c
mm, numa: skip PTE-mapped THP on numa fault
[karo-tx-linux.git] / mm / memory.c
index 9b0dbc2f0b9aa00abed8c390827ff2f481fb7c59..9d5b40892d4ddeca62cbdf222f00c3419b19ff36 100644 (file)
@@ -3193,6 +3193,12 @@ static int do_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
                return 0;
        }
 
+       /* TODO: handle PTE-mapped THP */
+       if (PageCompound(page)) {
+               pte_unmap_unlock(ptep, ptl);
+               return 0;
+       }
+
        /*
         * Avoid grouping on RO pages in general. RO pages shouldn't hurt as
         * much anyway since they can be in shared cache state. This misses