Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

mm/hugetlb_sysctl.c hstate_is_gigantic() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
DATA_SOURCE 0 h $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

mm/userfaultfd.c hugetlb_linear_page_index() -> huge_page_order()

Type Parameter Key Value
DATA_SOURCE 0 h r hstate_vma
LOCK2 &state.ctx->map_changing_lock
HALF_LOCKED2 &ctx->map_changing_lock
TYPE_LOCK (struct userfaultfd_ctx)->map_changing_lock

mm/hugetlb.c demote_free_hugetlb_folios() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
PARAM_VALUE 0 h->order 9,18
DATA_SOURCE 0 h $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dst->resize_lock
LOCK2 &of->mutex
LOCK2 0 &h->resize_lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct hstate)->resize_lock
TYPE_LOCK (struct kernfs_open_file)->mutex

mm/hugetlb.c demote_free_hugetlb_folios() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 0,3469904130518499328-18446744073709547519
BUF_SIZE 0 h (-1),66112
BUF_SIZE 0 h (-1),66112
CAPPED_DATA 0 h 1
CAPPED_DATA 0 &h->resize_lock 1
DATA_SOURCE 0 h $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 &src->resize_lock
LOCK2 0 &h->resize_lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct hstate)->resize_lock
TYPE_LOCK (struct kernfs_open_file)->mutex

mm/hugetlb.c demote_free_hugetlb_folios() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
PARAM_VALUE 0 h->order 9,18
DATA_SOURCE 0 h $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dst->resize_lock
LOCK2 &of->mutex
LOCK2 0 &h->resize_lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct hstate)->resize_lock
TYPE_LOCK (struct kernfs_open_file)->mutex

mm/hugetlb.c demote_free_hugetlb_folios() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 3469904130518499328-18446744073709547519
BUF_SIZE 0 h (-1),66112
BUF_SIZE 0 h (-1),66112
CAPPED_DATA 0 h 1
CAPPED_DATA 0 &h->resize_lock 1
DATA_SOURCE 0 h $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 &src->resize_lock
LOCK2 0 &h->resize_lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct hstate)->resize_lock
TYPE_LOCK (struct kernfs_open_file)->mutex

mm/hugetlb.c demote_pool_huge_page() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
PARAM_VALUE 0 h->order 9,18
DATA_SOURCE 0 h $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 global &hugetlb_lock
LOCK2 irq
LOCK2 0 &h->resize_lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct hstate)->resize_lock
TYPE_LOCK (struct kernfs_open_file)->mutex

mm/hugetlb.c demote_pool_huge_page() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 0,3469904130518499328-18446744073709547519
BUF_SIZE 0 h (-1),66112
BUF_SIZE 0 h (-1),66112
CAPPED_DATA 0 h 1
DATA_SOURCE 0 h r size_to_hstate
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 &src->resize_lock
LOCK2 global &hugetlb_lock
LOCK2 irq
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct hstate)->resize_lock
TYPE_LOCK (struct kernfs_open_file)->mutex

mm/hugetlb.c dissolve_free_hugetlb_folios() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 global &pcp_batch_high_lock
HALF_LOCKED2 &device->physical_node_lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 global &device_hotplug_lock
TYPE_LOCK (struct device)->mutex

mm/hugetlb.c dissolve_free_hugetlb_folios() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-18446744073709547519
BUF_SIZE 0 h (-1),66112
BUF_SIZE 0 h (-1),66112
CAPPED_DATA 0 h 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 global &pcp_batch_high_lock
HALF_LOCKED2 &device->physical_node_lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 global &device_hotplug_lock
TYPE_LOCK (struct device)->mutex

mm/hugetlb.c filemap_lock_hugetlb_folio() -> huge_page_order()

Type Parameter Key Value
DATA_SOURCE 0 h $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &state.ctx->map_changing_lock

mm/hugetlb.c hstate_is_gigantic() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h->order 9,18
BUF_SIZE 0 h (-1),66112
BUF_SIZE 0 h (-1),66112
DATA_SOURCE 0 h $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &hugetlb_lock
HALF_LOCKED2 irq
HALF_LOCKED2 0 &h->resize_lock

mm/hugetlb.c hugetlb_add_to_page_cache() -> huge_page_order()

Type Parameter Key Value
DATA_SOURCE 0 h r hstate_inode
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &state.ctx->map_changing_lock

mm/hugetlb.c hugetlb_folio_init_tail_vmemmap() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
DATA_SOURCE 0 h $1

mm/hugetlb.c hugetlb_folio_init_vmemmap() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
PARAM_VALUE 0 h->order 9,18
DATA_SOURCE 0 h $1

mm/hugetlb.c only_alloc_fresh_hugetlb_folio() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
PARAM_VALUE 0 h->order 9,18
BUF_SIZE 0 h (-1),66112
BUF_SIZE 0 h (-1),66112
CAPPED_DATA 0 h->next_nid_to_alloc 1
DATA_SOURCE 0 h $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 0 &h->resize_lock

mm/hugetlb.c vma_hugecache_offset() -> huge_page_order()

Type Parameter Key Value
DATA_SOURCE 0 h $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &state.ctx->map_changing_lock

mm/hugetlb_sysfs.c hstate_is_gigantic() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
DATA_SOURCE 0 h $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

mm/gup.c memfd_pin_folios() -> huge_page_order()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 _T->lock

mm/gup.c memfd_pin_folios() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 _T->lock

fs/hugetlbfs/inode.c filemap_lock_hugetlb_folio() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
PARAM_VALUE 0 h->order 9,18
DATA_SOURCE 0 h $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &mapping->i_mmap_rwsem
HALF_LOCKED2 &pool->lock

fs/hugetlbfs/inode.c hugetlbfs_fallocate() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
DATA_SOURCE 0 h r hstate_inode
RX_PATH
TASK_NOT_RUNNING
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/hugetlbfs/inode.c hugetlbfs_file_mmap() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
DATA_SOURCE 0 h r hstate_file
RX_PATH
TASK_NOT_RUNNING
LOCK2 &inode->i_rwsem
HALF_LOCKED2 &ipcp->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/hugetlbfs/inode.c remove_inode_hugepages() -> huge_page_order()

Type Parameter Key Value
DATA_SOURCE 0 h r hstate_inode
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem

mm/mempolicy.c hstate_is_gigantic() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 3469904130518499328-18446744073709547519
BUF_SIZE 0 h (-1),66112
BUF_SIZE 0 h (-1),66112
DATA_SOURCE 0 h $0
RX_PATH
TASK_NOT_RUNNING

mm/migrate.c hstate_is_gigantic() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 3469904130518499328-18446744073709547519
BUF_SIZE 0 h (-1),66112
BUF_SIZE 0 h (-1),66112
DATA_SOURCE 0 h $0

mm/hugetlb_vmemmap.c hugetlb_vmemmap_init_early() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
LOCK2 irq

mm/hmm.c hmm_vma_walk_hugetlb_entry() -> huge_page_order()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &m->lock
HALF_LOCKED2 &mapping->i_mmap_rwsem

mm/memfd.c hstate_is_gigantic() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
DATA_SOURCE 0 h $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 _T->lock

mm/memfd.c memfd_alloc_folio() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h 4096-ptr_max
PARAM_VALUE 0 h->order 9,18
DATA_SOURCE 0 h r hstate_file
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 _T->lock

mm/hugetlb_cma.c hstate_is_gigantic() -> huge_page_order()

Type Parameter Key Value
PARAM_VALUE 0 h->order 9,18
BUF_SIZE 0 h (-1),66112
BUF_SIZE 0 h (-1),66112
DATA_SOURCE 0 h $0