mm: revert "thp: make MADV_HUGEPAGE check for mm->def_flags"
[firefly-linux-kernel-4.4.55.git] / mm / memory.c
index 82c1e4cf00d16644f04f4d36fd72a008ea978ed5..c6ee34d10fcc0b65fe11156655b90f3a6a848cb7 100644 (file)
@@ -1320,9 +1320,9 @@ static void unmap_single_vma(struct mmu_gather *tlb,
                         * It is undesirable to test vma->vm_file as it
                         * should be non-null for valid hugetlb area.
                         * However, vm_file will be NULL in the error
-                        * cleanup path of do_mmap_pgoff. When
+                        * cleanup path of mmap_region. When
                         * hugetlbfs ->mmap method fails,
-                        * do_mmap_pgoff() nullifies vma->vm_file
+                        * mmap_region() nullifies vma->vm_file
                         * before calling this function to clean up.
                         * Since no pte has actually been setup, it is
                         * safe to do nothing in this case.