Defined in 2 files as a function:

Referenced in 6 files:

Smatch caller information:

mm/huge_memory.c change_huge_pmd() -> thp_migration_supported()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dst_mm->mmap_lock
HALF_LOCKED2 &mm->mmap_lock

mm/huge_memory.c change_huge_pmd() -> thp_migration_supported()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dst_mm->mmap_lock
HALF_LOCKED2 &mm->mmap_lock

mm/huge_memory.c copy_huge_pmd() -> thp_migration_supported()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &mm->mmap_lock
LOCK2 &oldmm->mmap_lock
LOCK2 src_ptl
TYPE_LOCK (struct mm_struct)->mmap_lock

mm/huge_memory.c normal_or_softleaf_folio_pmd() -> thp_migration_supported()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock

fs/proc/task_mmu.c pagemap_pmd_range_thp() -> thp_migration_supported()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock

fs/proc/task_mmu.c smaps_pmd_entry() -> thp_migration_supported()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock

mm/migrate_device.c __migrate_device_pages() -> thp_migration_supported()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

mm/migrate_device.c migrate_vma_collect_hole() -> thp_migration_supported()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

mm/migrate_device.c migrate_vma_collect_huge_pmd() -> thp_migration_supported()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock

mm/migrate_device.c migrate_vma_insert_page() -> thp_migration_supported()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &drm->dmem->mutex

mm/vmscan.c shrink_folio_list() -> thp_migration_supported()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

mm/migrate.c migrate_pages_batch() -> thp_migration_supported()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

mm/hmm.c hmm_vma_walk_pmd() -> thp_migration_supported()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock