Lines Matching refs:madvise
292 ret = madvise(p, size, MADV_COLLAPSE); in madvise_collapse_retry()
326 if (madvise(p, hpage_pmd_size, MADV_HUGEPAGE)) { in alloc_hpage()
419 if (madvise(((char *)p) + start, end - start, MADV_POPULATE_READ)) { in file_fault()
513 madvise(p, nr_hpages * hpage_pmd_size, MADV_HUGEPAGE); in __madvise_collapse()
549 madvise(p, nr_hpages * hpage_pmd_size, MADV_HUGEPAGE); in wait_for_scan()
564 madvise(p, nr_hpages * hpage_pmd_size, MADV_NOHUGEPAGE); in wait_for_scan()
634 madvise(p, page_size, MADV_DONTNEED); in alloc_at_fault()
721 if (madvise(p, page_size, MADV_PAGEOUT)) { in collapse_swapin_single_pte()
748 if (madvise(p, (max_ptes_swap + 1) * page_size, MADV_PAGEOUT)) { in collapse_max_ptes_swap()
767 if (madvise(p, max_ptes_swap * page_size, MADV_PAGEOUT)) { in collapse_max_ptes_swap()
799 madvise(p, hpage_pmd_size, MADV_NOHUGEPAGE); in collapse_single_pte_entry_compound()
801 madvise(p + page_size, hpage_pmd_size - page_size, MADV_DONTNEED); in collapse_single_pte_entry_compound()
820 madvise(p, page_size, MADV_NOHUGEPAGE); in collapse_full_of_compound()
821 madvise(p, hpage_pmd_size, MADV_NOHUGEPAGE); in collapse_full_of_compound()
843 madvise(BASE_ADDR, hpage_pmd_size, MADV_HUGEPAGE); in collapse_compound_extreme()
849 madvise(BASE_ADDR, hpage_pmd_size, MADV_NOHUGEPAGE); in collapse_compound_extreme()
950 madvise(p, page_size, MADV_NOHUGEPAGE); in collapse_fork_compound()
951 madvise(p, hpage_pmd_size, MADV_NOHUGEPAGE); in collapse_fork_compound()