Defined in 1 files as a function:
Referenced in 5 files:
- include/linux/hugetlb.h, line 1168
- mm/hugetlb.c
- mm/hugetlb_cgroup.c, line 892
- mm/mempolicy.c, line 1454
- mm/migrate.c
Smatch caller information:
mm/hugetlb.c alloc_and_dissolve_hugetlb_folio() -> folio_hstate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| DATA_SOURCE | 0 | folio | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | folio | unit_page |
| LOCK2 | global &hugetlb_lock | ||
| LOCK2 | irq |
mm/hugetlb.c dissolve_free_hugetlb_folio() -> folio_hstate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| DATA_SOURCE | 0 | folio | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | folio | unit_page |
| LOCK2 | global &hugetlb_lock | ||
| LOCK2 | global &pcp_batch_high_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &mf_mutex |
mm/hugetlb.c folio_putback_hugetlb() -> folio_hstate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | *folio->_mm_id | 0-4294967295 |
| CAPPED_DATA | 0 | folio | 1 |
| DATA_SOURCE | 0 | folio | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hugetlb_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | global &mf_mutex | ||
| HALF_LOCKED2 | global &pcp_batch_high_lock |
mm/hugetlb.c free_huge_folio() -> folio_hstate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| CAPPED_DATA | 0 | folio | 1 |
| DATA_SOURCE | 0 | folio | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/hugetlb.c move_hugetlb_state() -> folio_hstate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->_hugetlb_subpool | 0 |
| PARAM_VALUE | 0 | folio->lru.next | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | folio->mapping->i_private_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | folio->memcg_data | 0 |
| PARAM_VALUE | 0 | folio->page.memcg_data | 0 |
| PARAM_VALUE | 0 | folio->pgmap->ref.data | 0,4096-ptr_max |
| PARAM_VALUE | 0 | *folio->_mm_id | 0-4294967295 |
| CAPPED_DATA | 0 | folio | 1 |
| DATA_SOURCE | 0 | folio | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ctx->walk_control_lock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | global &mf_mutex | ||
| HALF_LOCKED2 | global &pcp_batch_high_lock |
mm/hugetlb.c move_hugetlb_state() -> folio_hstate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host->i_io_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->alloc_sem.first_waiter->task->blocked_on | (-1)-0 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_es->s_error_count | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_es->s_first_error_time | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_es->s_first_error_time_hi | 0-255 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_es->s_free_blocks_count_lo | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_es->s_last_error_time | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_es->s_last_error_time_hi | 0-255 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_es->s_wtime | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->s_es->s_wtime_hi | 0-255 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->sd_jdesc->jd_log_bio->bi_end_io | 6431644242391375872 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->sd_log_error | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->sd_log_flush_lock.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->sd_log_flush_tail | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->sd_log_head | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->sd_log_num_revoke | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->sd_log_pinned.counter | s32min-s32max |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->sd_log_tail | 0-4294967295 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->wbuf_sem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->wbuf_sem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | folio->mapping->host->i_sb->s_fs_info->write_congested | 1 |
| PARAM_VALUE | 0 | folio->mapping->host->i_wb->dwork.work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | folio->private->b_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | folio->private->read_bytes_pending | 0-4294967295 |
| PARAM_VALUE | 0 | folio->private->state | 0 |
| PARAM_VALUE | 0 | folio->private->wb_kref.refcount.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | folio->private->write_bytes_pending | s32min-s32max |
| PARAM_VALUE | 0 | folio->private->write_bytes_pending.counter | s32min-s32max |
| CAPPED_DATA | 0 | folio | 1 |
| DATA_SOURCE | 0 | folio | $1 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hugetlb_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &ctx->walk_control_lock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | global &mf_mutex | ||
| HALF_LOCKED2 | global &pcp_batch_high_lock |
mm/hugetlb_cgroup.c hugetlb_cgroup_migrate() -> folio_hstate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->_hugetlb_subpool | 0 |
| PARAM_VALUE | 0 | folio->lru.next | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->lru.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | folio->mapping->i_private_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | folio->memcg_data | 0 |
| PARAM_VALUE | 0 | folio->page.memcg_data | 0 |
| PARAM_VALUE | 0 | folio->pgmap->ref.data | 0,4096-ptr_max |
| PARAM_VALUE | 0 | *folio->_mm_id | 0-4294967295 |
| CAPPED_DATA | 0 | folio | 1 |
| DATA_SOURCE | 0 | folio | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ctx->walk_control_lock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | global &mf_mutex | ||
| HALF_LOCKED2 | global &pcp_batch_high_lock |
mm/mempolicy.c alloc_migration_target_by_mpol() -> folio_hstate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| DATA_SOURCE | 0 | folio | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/migrate.c alloc_migration_target() -> folio_hstate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | *folio->_mm_id | 0-4294967295 |
| DATA_SOURCE | 0 | folio | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/migrate.c migrate_hugetlbs() -> folio_hstate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | folio | 4096-ptr_max |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | folio->mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | *folio->_mm_id | 0-4294967295 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ctx->walk_control_lock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | global &mf_mutex | ||
| HALF_LOCKED2 | global &pcp_batch_high_lock |