Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
mm/swapfile.c alloc_swap_scan_cluster() -> cluster_is_usable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0-255 |
| DATA_SOURCE | 0 | ci | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &si->global_cluster_lock | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | global &system_transition_mutex |
mm/swapfile.c cluster_alloc_swap_entry() -> cluster_is_usable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0-255 |
| DATA_SOURCE | 0 | ci | r swap_cluster_lock |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &si->global_cluster_lock | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | global &system_transition_mutex | ||
| TYPE_LOCK | (struct swap_info_struct)->global_cluster_lock |
mm/swapfile.c cluster_reclaim_range() -> cluster_is_usable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 0 | ci->count | 0-512 |
| PARAM_VALUE | 0 | ci->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ci->table | 0,4096-ptr_max |
| PARAM_VALUE | 1 | order | 0-255 |
| CAPPED_DATA | 0 | ci->table | 1 |
| CAPPED_DATA | 1 | order | 1 |
| DATA_SOURCE | 0 | ci | $1 |
| DATA_SOURCE | 1 | order | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &ci->lock | |
| HALF_LOCKED2 | &si->global_cluster_lock | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | global &system_transition_mutex | ||
| TYPE_LOCK | (struct swap_cluster_info)->lock |
mm/swapfile.c swap_alloc_fast() -> cluster_is_usable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0-255 |
| DATA_SOURCE | 0 | ci | r swap_cluster_lock |
| DATA_SOURCE | 1 | order | r folio_order |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/swapfile.c swap_alloc_hibernation_slot() -> cluster_is_usable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 1 | order | 0 |
| DATA_SOURCE | 0 | ci | r swap_cluster_lock |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &device_hotplug_lock | ||
| LOCK2 | global &system_transition_mutex |