Defined in 2 files as a function:

Referenced in 5 files:

Smatch caller information:

mm/huge_memory.c __thp_vma_allowable_orders() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 2-262656
DATA_SOURCE 0 orders $3 [m]
BIT_INFO 0 orders 0x0,0x403fe
BIT_INFO 0 orders 0x0,0x403fe
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &m->lock

mm/huge_memory.c hugepage_init_sysfs() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 1022

mm/huge_memory.c next_order() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 0-262656
RX_PATH
TASK_NOT_RUNNING

mm/shmem.c next_order() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 0-254
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem

mm/shmem.c shmem_alloc_and_add_folio() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 0,2-254
DATA_SOURCE 0 orders r shmem_suitable_orders
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem

mm/shmem.c shmem_get_orders_within_size() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 0,254
DATA_SOURCE 0 orders $1
HARD_MAX 0 orders 254
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem

mm/shmem.c shmem_get_unmapped_area() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 512
RX_PATH
TASK_NOT_RUNNING

mm/shmem.c shmem_suitable_orders() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 254,512
DATA_SOURCE 0 orders $4 [m]
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem

mm/shmem.c thp_vma_suitable_orders() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 254
DATA_SOURCE 0 orders $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem

mm/memory.c alloc_anon_folio() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 1-262656
DATA_SOURCE 0 orders r thp_vma_suitable_orders
PARAM_COMPARE 0 orders == $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &mm->mmap_lock

mm/memory.c next_order() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 0-262656
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 ptl
HALF_LOCKED2 rcu_read

mm/memory.c thp_swap_suitable_orders() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 0,2-262656
DATA_SOURCE 0 orders $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock

mm/memory.c thp_swapin_suitable_orders() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 1-262656
DATA_SOURCE 0 orders r thp_swap_suitable_orders
PARAM_COMPARE 0 orders == $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 ptl
HALF_LOCKED2 &mm->mmap_lock

mm/memory.c thp_vma_suitable_orders() -> highest_order()

Type Parameter Key Value
PARAM_VALUE 0 orders 0,2-262656
DATA_SOURCE 0 orders $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock

mm/swap_state.c next_order() -> highest_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

mm/swap_state.c swap_cache_alloc_folio() -> highest_order()

Type Parameter Key Value
DATA_SOURCE 0 orders $2
RX_PATH
TASK_NOT_RUNNING