Home
last modified time | relevance | path

Searched refs:mm_flags_test (Results 1 – 18 of 18) sorted by relevance

/linux/include/linux/
H A Dksm.h59 if (mm_flags_test(MMF_VM_MERGEABLE, oldmm)) { in ksm_fork()
71 if (mm_flags_test(MMF_VM_MERGE_ANY, mm)) in ksm_execve()
79 if (mm_flags_test(MMF_VM_MERGEABLE, mm)) in ksm_exit()
H A Dkhugepaged.h25 if (mm_flags_test(MMF_VM_HUGEPAGE, oldmm)) in khugepaged_fork()
31 if (mm_flags_test(MMF_VM_HUGEPAGE, mm)) in khugepaged_exit()
H A Doom.h94 if (unlikely(mm_flags_test(MMF_UNSTABLE, mm))) in check_stable_address_space()
H A Dmman.h204 if (!mm_flags_test(MMF_HAS_MDWE, current->mm)) in map_deny_write_exec()
H A Dhuge_mm.h338 if (mm_flags_test(MMF_DISABLE_THP_COMPLETELY, vma->vm_mm)) in vma_thp_disabled()
352 return mm_flags_test(MMF_DISABLE_THP_EXCEPT_ADVISED, vma->vm_mm); in vma_thp_disabled()
H A Dmm.h868 static inline bool mm_flags_test(int flag, const struct mm_struct *mm) in mm_flags_test() function
2165 if (!mm_flags_test(MMF_HAS_PINNED, vma->vm_mm)) in folio_needs_cow_for_dma()
/linux/mm/
H A Doom_kill.c221 mm_flags_test(MMF_OOM_SKIP, p->mm) || in oom_badness()
328 if (mm_flags_test(MMF_OOM_SKIP, task->signal->oom_mm)) in oom_evaluate_task()
593 if (mm_flags_test(MMF_OOM_SKIP, mm)) { in oom_reap_task_mm()
629 mm_flags_test(MMF_OOM_SKIP, mm)) in oom_reap_task()
680 if (mm_flags_test(MMF_OOM_SKIP, mm)) { in wake_oom_reaper()
902 if (mm_flags_test(MMF_OOM_SKIP, mm)) in task_will_free_mem()
1245 if (!mm_flags_test(MMF_OOM_SKIP, mm)) in SYSCALL_DEFINE2()
1261 if (!mm_flags_test(MMF_OOM_SKIP, mm) && !__oom_reap_task_mm(mm)) in SYSCALL_DEFINE2()
H A Dksm.c2870 if (mm_flags_test(MMF_VM_MERGE_ANY, mm) && in ksm_vma_flags()
2878 if (unlikely(!mm_flags_test(MMF_VM_MERGEABLE, mm))) in ksm_vma_flags()
2920 if (mm_flags_test(MMF_VM_MERGE_ANY, mm)) in ksm_enable_merge_any()
2923 if (!mm_flags_test(MMF_VM_MERGEABLE, mm)) { in ksm_enable_merge_any()
2951 if (!mm_flags_test(MMF_VM_MERGE_ANY, mm)) in ksm_disable_merge_any()
2968 if (!mm_flags_test(MMF_VM_MERGEABLE, mm)) in ksm_disable()
2970 if (mm_flags_test(MMF_VM_MERGE_ANY, mm)) in ksm_disable()
2988 if (!mm_flags_test(MMF_VM_MERGEABLE, mm)) { in ksm_madvise()
H A Dkhugepaged.c405 mm_flags_test(MMF_DISABLE_THP_COMPLETELY, mm); in hpage_collapse_test_exit_or_disable()
464 if (!mm_flags_test(MMF_VM_HUGEPAGE, vma->vm_mm) && in khugepaged_enter_vma()
H A Dhuge_memory.c255 if (mm_flags_test(MMF_HUGE_ZERO_FOLIO, mm)) in mm_get_huge_zero_folio()
272 if (mm_flags_test(MMF_HUGE_ZERO_FOLIO, mm)) in mm_put_huge_zero_folio()
1224 if (mm_flags_test(MMF_TOPDOWN, current->mm) && !off_sub) in __thp_get_unmapped_area()
H A Dmmap.c804 if (mm_flags_test(MMF_TOPDOWN, current->mm)) in mm_get_unmapped_area_vmflags()
H A Dgup.c481 if (!mm_flags_test(MMF_HAS_PINNED, mm)) in mm_set_has_pinned_flag()
/linux/kernel/events/
H A Duprobes.c1166 first_uprobe = !mm_flags_test(MMF_HAS_UPROBES, mm); in install_breakpoint()
1316 } else if (mm_flags_test(MMF_HAS_UPROBES, mm)) { in register_for_each_vma()
1608 mm_flags_test(MMF_HAS_UPROBES, vma->vm_mm)) in uprobe_mmap()
1668 if (!mm_flags_test(MMF_HAS_UPROBES, vma->vm_mm) || in uprobe_munmap()
1669 mm_flags_test(MMF_RECALC_UPROBES, vma->vm_mm)) in uprobe_munmap()
1846 if (mm_flags_test(MMF_HAS_UPROBES, oldmm)) { in uprobe_dup_mmap()
2872 if (!mm_flags_test(MMF_HAS_UPROBES, current->mm) && in uprobe_pre_sstep_notifier()
/linux/kernel/
H A Dsys.c2413 if (mm_flags_test(MMF_HAS_MDWE, current->mm)) in get_current_mdwe()
2415 if (mm_flags_test(MMF_HAS_MDWE_NO_INHERIT, current->mm)) in get_current_mdwe()
2482 if (mm_flags_test(MMF_DISABLE_THP_COMPLETELY, mm)) in prctl_get_thp_disable()
2484 else if (mm_flags_test(MMF_DISABLE_THP_EXCEPT_ADVISED, mm)) in prctl_get_thp_disable()
2836 error = !!mm_flags_test(MMF_VM_MERGE_ANY, me->mm); in SYSCALL_DEFINE5()
/linux/tools/testing/vma/
H A Dvma_internal.h1553 static inline bool mm_flags_test(int flag, const struct mm_struct *mm) in mm_flags_test() function
1681 if (mm_flags_test(MMF_HAS_MDWE, current->mm)) in map_deny_write_exec()
/linux/fs/proc/
H A Darray.c423 thp_enabled = !mm_flags_test(MMF_DISABLE_THP_COMPLETELY, mm); in task_thp_status()
H A Dbase.c1166 if (mm_flags_test(MMF_MULTIPROCESS, p->mm)) { in __set_oom_adj()
3272 mm_flags_test(MMF_VM_MERGE_ANY, mm) ? "yes" : "no"); in proc_pid_ksm_stat()
H A Dtask_mmu.c1595 if (likely(!mm_flags_test(MMF_HAS_PINNED, vma->vm_mm))) in pte_is_pinned()