Lines Matching refs:madvise
588 ret = madvise(p, size, MADV_COLLAPSE); in madvise_collapse_retry()
622 if (madvise(p, hpage_pmd_size, MADV_HUGEPAGE)) { in alloc_hpage()
715 if (madvise(((char *)p) + start, end - start, MADV_POPULATE_READ)) { in file_fault()
809 madvise(p, nr_hpages * hpage_pmd_size, MADV_HUGEPAGE); in __madvise_collapse()
845 madvise(p, nr_hpages * hpage_pmd_size, MADV_HUGEPAGE); in wait_for_scan()
860 madvise(p, nr_hpages * hpage_pmd_size, MADV_NOHUGEPAGE); in wait_for_scan()
925 madvise(p, page_size, MADV_DONTNEED); in alloc_at_fault()
1011 if (madvise(p, page_size, MADV_PAGEOUT)) { in collapse_swapin_single_pte()
1038 if (madvise(p, (max_ptes_swap + 1) * page_size, MADV_PAGEOUT)) { in collapse_max_ptes_swap()
1057 if (madvise(p, max_ptes_swap * page_size, MADV_PAGEOUT)) { in collapse_max_ptes_swap()
1089 madvise(p, hpage_pmd_size, MADV_NOHUGEPAGE); in collapse_single_pte_entry_compound()
1091 madvise(p + page_size, hpage_pmd_size - page_size, MADV_DONTNEED); in collapse_single_pte_entry_compound()
1110 madvise(p, page_size, MADV_NOHUGEPAGE); in collapse_full_of_compound()
1111 madvise(p, hpage_pmd_size, MADV_NOHUGEPAGE); in collapse_full_of_compound()
1133 madvise(BASE_ADDR, hpage_pmd_size, MADV_HUGEPAGE); in collapse_compound_extreme()
1139 madvise(BASE_ADDR, hpage_pmd_size, MADV_NOHUGEPAGE); in collapse_compound_extreme()
1240 madvise(p, page_size, MADV_NOHUGEPAGE); in collapse_fork_compound()
1241 madvise(p, hpage_pmd_size, MADV_NOHUGEPAGE); in collapse_fork_compound()